DEV Community

Cover image for About well designed REST APIs

About well designed REST APIs

Duca on January 08, 2024

We all have struggled at least once with a poorly designed API and I am pretty sure that it is really hard to forget how frustrating it was as a pa...
Collapse
 
webjose profile image
José Pablo Ramírez Vargas

POST is to create only. PATCH is for UPDATE. PUT is for UPDATE or UPSERT.

Collapse
 
yelldutz profile image
Duca

thanks!

Collapse
 
silvairsoares profile image
Silvair L. Soares

Just study and implement the RESTFul standard. You don't need to invent anything, nor make your customers have to guess the behavior of your API.

Collapse
 
yelldutz profile image
Duca

Strongly agree!