Since I already had the presentation from the CodeCamp Buenos Aires, I thought I’d translate it to English and explain what the presentation was about. REST has earned a place amongst applications that consume ‘resource-centric’ services. Microsoft has addressed this by giving WCF REST capabilities, and then took their commitment even further by lunching WCF DataServices and the OData Protocol. In this presentation we cover how to build RESTful services with WCF REST, WCF DataServices and even with ASP .NET MVC. RESTful Services Codecamp 2010 English
RESTREST which stands for “Representational State Transfer” is an architectural style for building web services over HTTP. By saying “architectural style” we mean that there are no specifications or standards that we need to follow in order to make a service RESTful; instead we have principles to adhere. The fact that these principles are not mandatory gives us a sense of RESTfulness, the more and the better we adhere to these principles, the more RESTful our service will be.
The five REST principles are:
- Identify resources with URIs.
- Use the standard HTTP verbs (GET, POST, PUT, DELETE) to operate over the resources.
- Link resources using their URIs.
- Expose the resource representation in multiple formats (xml, json, etc)
- Stateless Communication.
- GET: Returns a representation of the resource
- PUT: Updates the resource
- POST: Creates a resource
- DELETE: Deletes a resource