Home > Software engineering >  "Never use CRUD function names in URIs", Why?
"Never use CRUD function names in URIs", Why?

Time:01-13

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?

CodePudding user response:

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.

  • Related