Implementing 5 Important Principles Of Rest Using Wcf Services
REVIEWER: Shivprasad Koirala | 15 Nov 2011
In this paper is explained the main principles of "REST". REST is a kindof architecture built on certain principles fundamentals of what is known as web. The main contributions described here is how after 40 years to birth of the protocol HTTP nowadays it is still used,also how are using the same standard an unified methods like : POST, GET PUT and DELETE and how are use URI (Uniform Resource Identifier) format to locate any web resource.
The five basicfundamentals of "web" to create a "REST" are the next:
1. Everything is a Resource
2. Every Resource is Identified by a Unique Identifier
3. Use Simple and Uniform Interface
4. Communication isDone by Representation
5. Be Stateless
The main point to understand is when it is speaking about resource it is referred to physical files. Each resource is identified with only oneidentifier that it is know as URI. To create a uniform interface REST, it use the HTTP methods with resource names, both will be a uniform REST URL, for instance if we want to add a new costumer how resourceon the web, for it we will be using the normal method names "AddCustomer" which pertain to method "PUT" of the HTTP methods and it will be one new URL: Customer/(name of customer). All the sources aresaved in a server. To get the information the client must send a "Request" and the server have to send a "Response". The first time the client must send an identifier, after it will not be necessaryagain because we can scale up from this level to the next level. In other way to say it is that every request is independent and the server does not need to remember your previous request or state.The conclusion after read this paper is that the way to do the things can change, but the structure to do it and the main tools are the same. If one protocol is used to many people and it is...
Regístrate para leer el documento completo.