PPT Slide
The REST way of Implementing the Web Service
- Service: Get a list of parts
- The web service makes available a URL to a parts list resource. Example, a client would use this URL to get the parts list:
- http://www.parts-depot.com/parts
- Note that how the web service generates the parts list is completely transparent to the client. This is loose coupling.
- The web service may wish to allow the client to specify whether he/she wants the parts list as an HTML document, or as an XML document. This is how to specify that an XML document is desired:
- http://www.parts-depot.com/parts?flavor=xml
-