Rest: (Representational State Transfer)
- It is an architectural style for developing web-services.
- It is popular (because it is simple). It supports multiple formats like JSON, Text, XML..etc.
- Rest is also language-independent architectural style, most of the REST-based application can be written in any language (Java, Angular JS, python) as long as the language support web-based request using HTTP.
- Reason: The reason why REST is popular is supporting multiple programming languages and multiple formats. Before REST developers used SOAP which mainly supports XML and had restrictions. Whereas, REST offers much better style for an approach.
REST: (Main operations)
PUT: Used to create a new resource.
POST: Used to update an existing resource or create a new resource.
GET: Provides a read only access to a resource.
DELETE: Used to remove a resource.
No comments:
Post a Comment