Implementing Generic API request and response.