Call a custom API from an HTML client – Mobile Services
Learn how to define a custom API and then call it from an HTML app that uses Azure Mobile Services.
https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-call-custom-api/