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
I'm working on an Web API and need to set custom endpoints for HTTP request methods. Currently, all my endpoints are default:
/umbraco/api/controller/method/(parameter if there's any)
I've been looking for some time and found some possible solutions, but don't know how to implement them. Thus why I'm writing this post.
Basically, I want to set them all to be in this format:
/umbraco/api/controller/(parameter if there's any)
or, if possible:
/api/controller/(parameter it there's any)
As you can see, I want the API to be able to call required method based on the type of HTTP request (without method name in the url).
Thanks in advance!
PS I have Content and Members that have CRUD methods, if that makes any difference.
Got it working with this solution: Solution by bronzewind
God bless him!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Routing custom Web API endpoints
I'm working on an Web API and need to set custom endpoints for HTTP request methods. Currently, all my endpoints are default:
I've been looking for some time and found some possible solutions, but don't know how to implement them. Thus why I'm writing this post.
Basically, I want to set them all to be in this format:
or, if possible:
As you can see, I want the API to be able to call required method based on the type of HTTP request (without method name in the url).
Thanks in advance!
PS I have Content and Members that have CRUD methods, if that makes any difference.
Got it working with this solution: Solution by bronzewind
God bless him!
is working on a reply...