alialdev / projects

Projects
0 stars 1 forks source link

Fix REST API design for endpoints #5

Closed dvt32 closed 1 month ago

dvt32 commented 1 month ago

Instead of having endpoints like /movies/list & /movies/add, endpoints' name should be something like /movies, /movies/{id} with the appropriate HTTP method (GET, POST, PUT, DELETE) deciding what happens when the endpoint is used.

You can see some REST API best practices here: https://www.freecodecamp.org/news/rest-api-best-practices-rest-endpoint-design-examples

ali-al-fntext commented 1 month ago

Done