And finally, clients of your RPC-style API are required to know all of the available actions ahead of time. This means there is an implicit binding between client and server, in that the caller is dependent on a contract and a given set of actions from the service. This does not feel very Web-like. When you browse to a public web site, all you are required to remember is the root address. From there, everything else is discoverable and linked to other elements via hypermedia (i.e., links and forms). Indeed, the Web dictates that hypermedia is the engine of application state. You can transition from one state to the next (where the state machine is a web site or the broader Internet) based solely...
- 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/19731/