Feature/consume api

Feature of consume the api with js