Base solution for your next web application
Open Closed

Dynamic Api Method Names #2807


User avatar
0
mysterio21troy created

Just a quick question regarding the AppService functionality where dynamic api's are generated off the method names.

Is it possible to make it more RESTful?

For example if i have a PhoneAppService that has:

GetPhone()
CreatePhone()

would be nice for the endpoints to be more restful:

GET: /api/services/app/Phone
POST: /api/services/app/Phone

rather than:

GET: /api/services/app/Phone/GetPhone
POST: /api/services/app/Phone/PostPhone

This is on the .net core app also, is there a way to do this?


1 Answer(s)