This is a migrated thread and some comments may be shown as answers.

Api Endpoints

1 Answer 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 2
Veteran
Roger asked on 19 Jan 2021, 08:01 PM

I'm not an expert - but most of the work that I have seen on developing REST Apis show the default if you want to get a list of resources from an api that you should make the endpoint something like /api/resources with a get call.  Similarly if you want to create a resource, your endpoint would be something like /api/resource with a Post call and include the data to be created in the body of the request.  

On numerous occasions, I have been caught up because a forgot that Telerik expects its endpoints to be decorated with an additional term resulting in endpoints such as /api/resources/all and /api/resource/create etc.  Why does Telerik do this?  Is there any configuration that you can set so that you can use what for me at least is the more standard REST Api endpoints?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 21 Jan 2021, 10:17 AM

Hi,

Thank you for you feedback.

Yes, indeed this is how our demo API is created - maybe with the idea to show that the path that are set to the DataSource can be different for each CRUD operation and can be set to the dataSource depending on the specific API need as for example it is done in this demo.

Regards,
Plamen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Roger
Top achievements
Rank 2
Veteran
Answers by
Plamen
Telerik team
Share this question
or