cancel
Showing results for 
Search instead for 
Did you mean: 

How to define custom api routes in Azure Mobile Service when using .NET as Back end?

MichaelScruggs
Member

Tried both Table Controller and Custom Controller but not able to define two functions accepting the same parameters with same http method. For example when declaring

public Person GetMemberDetails(int id)
{
   // Some Code
   return person;
}

public Person GetMemberAddress(int id)
{
   // Some Code
   return person;
}

as both functions are requesting using GET and both have same input after building the project i am not able to use either of them. When i delete one or modifies one to use any other requesting method i am able to request from.

http://<azure-mobile-service-name>/Person/{id}

Is there any way to declare two functions with same signature and same method of request?

Dollar General Customer

12 REPLIES 12

Eva44
Member

Did you try setting MS_SkipVersionCheck to true in the app setting to opt out of version checking. You can specify this either in your web.config or in the Application Settings section of the Azure Portal.

My Insite Schedule

Lenard
Member

@MichaelScruggs wrote: mcdvoice survey

Tried both Table Controller and Custom Controller but not able to define two functions accepting the same parameters with same http method. For example when declaring

public Person GetMemberDetails(int id) { // Some Code return person; } public Person GetMemberAddress(int id) { // Some Code return person; }

as both functions are requesting using GET and both have same input after building the project i am not able to use either of them. When i delete one or modifies one to use any other requesting method i am able to request from.

http://<azure-mobile-service-name>/Person/{id} 

Is there any way to declare two functions with same signature and same method of request?

Dollar General Customer


As per RESTful principles you can have only one method for a verb with one particular signature. But you can always modify your routing and achieve it but you won't be sticking to REST though. In some cases if the situation demands it is alright to do so. refer this post Multiple HttpPost method in Web API controller

Lenard
Member

As per RESTful principles you can have only one method for a verb with one particular signature. But you can always modify your routing and achieve it but you won't be sticking to REST though. In some cases if the situation demands it is alright to do so. refer this post Multiple HttpPost method in Web API controller.

IndigoCard Login

Seo-Jun
Member

Thank you for sharing the solution, my query has been solved. Gunship Battle Helicopter 3D Mod Apk is an amazing and exciting adventurous game. It comes with plenty of thrilling missions. You have to complete all the missions while you are in the helicopter. Also, you have to kill all the enemies who are also on the helicopter.

Himari10
Member

Thank you for sharing the solution, my query has been solved. Killer Bean Mod Apk is the best game.This 2D shooting game by Killer Bean Studios will pique the curiosity of fans of the classic mobile action gameplay. Please feel free to join our hero and join him on his incredible exploits. And this time, you'll be up against the ultimate assassin organization, as well as a slew of strong opponents.

abella3232
Member

Thanks for this infromation. Amazon Prime MOD APK is an online app for a collection of videos, movies, and tv serials. Not only from Hollywood but also from all other cultures and countries. As this amazon prime is working in 130 and more countries. Like Netflix, you can enjoy a variety of content of videos.

harrypal
Member

Chromebookappsinfo Website provides info about Chromebook tips, Chromebook laptop errors, and Chromebook-supporting apps.

 

Chromebook screenshot shortcut

how to factory reset a school Chromebook

uber corporate office headquarters address

KeyBank corporate office headquarters address

us cellular apn setting

kentstar
Member

McDVOICE - Review's all's inquiries, you will currently be approached to enter your contact data. On the off chance that you are the lucky victor of the McDVOICE Study, your contact data will be used to reach out to you.

richardrigg
Member

Following that, a page will show up in front of you; carefully read everything before entering the code on the receipt. You must also include the necessary details, like the time and date of your visit, and you are asked to be polite in your responses to the questions that follow.

 

https://mcdvoicesurvey.website/