RESTful
web services are worked to work best on the Web. Representational State Transfer is a building style that determines requirements, for example, the uniform interface, that if connected to a web service instigate alluring properties, for example, execution, versatility, and modifiability, that empower administrations to work best on the Web.
In the REST engineering style, information and usefulness are considered assets and are gotten to utilizing Uniform Resource Identifiers (URIs), regularly connects on the Web. The assets are followed up on by utilizing an arrangement of straightforward, all around characterized operations.
The REST compositional style compels an engineering to a customer/server model
and is intended to utilize a stateless correspondence convention, commonly HTTP. In the REST engineering style, customers and servers trade representations of assets by utilizing an institutionalized interface and convention. FormParam
annotation is used to indicate the form parameters.CookieParam
annoation is used to indicate the cookie parameter.HEAD
annotation will provide the method to give the response for the request.