The use of the DELETE verb is also hotly debated. Most enterprise applications don’t allow the caller to really delete a resource. More often, a resource is merely closed, inactivated, hidden, and so on. As such, it might seem reasonable to not waste one of your precious few verbs on an action that you never even allow, when instead you could use it for the “close” action.
As with most endeavors in the world of software, the devil’s in the details. And you can usually find 101 ways to implement those details if you look hard enough. Our advice here is to simply do the best you can, don’t be afraid to be wrong, and don’t get stuck in an infinite loop of f...
- Chapter 2: What Is RESTful?
- from ASP.NET Web API 2: Building a REST Service from Start to Finish
- Publisher: Apress
- Released: August 2014
Share this highlighthttp://www.safaribooksonline.com/a/aspnet-web-api/19793/