RESTful Collection Service is a service that represents a collection of resources exposed as XML or JSON. REpresentational State Transfer (REST) is a key design idiom that embraces a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URLs. Applications that want to use these web services access a particular representation by transferring application content using a small globally defined set of methods that describe the action to be performed on the resource. One of the key characteristics of a RESTful Web service is the explicit use of HTTP methods. This basic REST design principle establishes a one-to-one mapping between CRUD operations and HTTP methods. According to this mapping, if you want:
- to create a resource on the server, use POST.
- to retrieve a resource, use GET.
- to change the state of a resource or to update it, use PUT.
- to remove or delete a resource, use DELETE.
For more information, read A Guide to Designing and Building RESTful Web Services with WCF.
The topics in this section show you: