Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello dear Umbracians
I have managed to setup an UmbracoApiController for my custom apis. I can get http://domain/umbraco/api/controller/action to work fine. But i really want to be very restful and therefore i need a GetAll/Index result with the following url http://domain/umbraco/api/controller/ - But cant get it to work
Working: http://domain/umbraco/api/Products/GetAllProducts
Not-working: http://domain/umbraco/api/Products
I have tried with a lot of differend method names (Get, GetAll, GetAllProducts, GetProducts ect.). And read the http://our.umbraco.org/documentation/Reference/WebApi/ a 1000 times and the asp.net webapi docs aswell.
How is Umbraco doit the routing and what am i missing?
Hello,
I don't think that is supported. You always need to add the method name add the end of the url.
Jeroen
Jeroen: Thats really ashame, but it is deffently an answer i can use :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Standard WebAPI rounting not working
Hello dear Umbracians
I have managed to setup an UmbracoApiController for my custom apis. I can get http://domain/umbraco/api/controller/action to work fine. But i really want to be very restful and therefore i need a GetAll/Index result with the following url http://domain/umbraco/api/controller/ - But cant get it to work
Working: http://domain/umbraco/api/Products/GetAllProducts
Not-working: http://domain/umbraco/api/Products
I have tried with a lot of differend method names (Get, GetAll, GetAllProducts, GetProducts ect.). And read the http://our.umbraco.org/documentation/Reference/WebApi/ a 1000 times and the asp.net webapi docs aswell.
How is Umbraco doit the routing and what am i missing?
Hello,
I don't think that is supported. You always need to add the method name add the end of the url.
Jeroen
Jeroen: Thats really ashame, but it is deffently an answer i can use :)
is working on a reply...