controller http request from api