Have made an angular js solution with the controllers designed as WepAPIs. When I test in my local the solution runs fine . But when i deploy to a server the WebAPI does not seem to give a correct response .
The request body and the api path is correct . Although i get a response code of 200 in the response of calling the API , the content type in the response is text/html; charset=utf-8 rather than JSON and my index page is being returned in the response as html.
Am I missing any server configuration ? Some server configuration has to be done for an WebAPI project ?