Search code examples
apiurinaming-conventions

"Never use CRUD function names in URIs", Why?


Never use CRUD function names in URIs Why?

I was reading this article about resource naming and they say that:

2.4. Never use CRUD function names in URIs

And I wondered why should I never use CRUD function names in URIs?


Solution

  • Because (as the article says) it's redundant; the operation to perform is already identified by the HTTP request method POST, GET, PUT or DELETE which correspond to Create, Read, Update and Delete respectively.