So, I am using azure mobile services backend to create a custom API. However, I cannot even connect to the template table with the client. When you create a new Azure Mobile Service using a template, they provide you with this API valuesthat resembles this format
[MobileAppController]
public class ValuesController : ApiController
{
[Route("api/values")]
public string Get()
{
return "test";
}
}
From the client, I try to call this endpoint like this
var result = mobileService.InvokeApiAsync<string>("values", HttpMethod.Get, null).Result;
And for some reason I get this exception
{"The request could not be completed. (Bad Request)"}
{Method: GET, RequestUri: 'http://localhost:58457/api/values', Version: 1.1, Content: <null>, Headers:
{
X-ZUMO-FEATURES: AT
X-ZUMO-INSTALLATION-ID: b04f4e19-4f41-46ed-9767-9c1352037559
Accept: application/json
User-Agent: ZUMO/1.3
User-Agent: (lang=Managed; os=Windows; os_version=6.1.65536.7601; arch=Win32NT; version=1.3.30324.0)
X-ZUMO-VERSION: ZUMO/1.3 (lang=Managed; os=Windows; os_version=6.1.65536.7601; arch=Win32NT; version=1.3.30324.0)
}}
This is also a template, so I need this to work before I start and run any of my user endpoints. Any ideas on what could be the issue?