Restful




What is REST?

REST –

stands for Representational State Transfer. It is Stateless and architecture style which uses http protocol for data communication.

HTTP Methods and REST Api

GET-

get the resource from server.

POST-

Create a new resource.

PUT-

update a existing resource.

DELETE-

remove the resource.

Why we should use RESTful?

1. Its minimising the coupling between client and server.
2. It is very helpful for mobile devices, where mobile can be used for instructions and all the transaction will happen in server.
3. it is easy to integrate with new and existing website.
4. it consume and produce JSON, XML, TEXT etc.

Java framework for creating RESTful web services.

JAX-RS implementation done by below framework.

1. Jersey – more
2. RESTEasy – more
3. Swagger – more
4. Apache CXF – more
5. Spring – more
6. Restlet – more

Examples

Be the first to comment

Leave a Reply

Your email address will not be published.


*


Skip to toolbar