Introduction of RESTful Web Service
Rest Web Service
It Stands for Representational State Transfer
who coined Rest ?Roy Fielding, who is developed HTTP as well
Rest is make Best use of HTTP:
Key Abstraction - Resources:
1. A Resource has an URI (Uniform Resource Identifier)
- /user/Khan/todos/1
- /user/Khan/todos
- /user/Khan
Note: It shows we assign a URI to Each Resource
Rest does not worry about how you are representing your resource
is it JSON,XML or HTML
2. A Resource can have different representations
- JSON
- XML
- HTML
Methods for Resources:
- 1. Create Resource : POST
- 2. Update Resource : PUT
- 3. Get Resource : GET
- 4. Delete Resource : DELETE
REST
- Data Exchange Format
- No Restriction.(But JSON format is popular in restful)
- Transport
- Only HTTP (Restricted)
- Service Definition
- No Standard (but Swagger is popular one)
Difference Between Rest And SOAP
Comments
Post a Comment