简体   繁体   中英

"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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM