Webservice
1.Jersey is an open source framework for developing RESTful Web Services. It serves as a reference implementation of JAX-RS.
2.In a REST based architecture everything is a resource. A resource is accessed via a common interface based on the HTTP standard methods. In a REST based architecture you have a REST server which provides access to the resources. A REST client can access and modify the REST resources.
3.Every resource should support the HTTP common operations. Resources are identified by global IDs (which are typically URIs).REST allows that resources have different representations, e.g., text, XML, JSON etc. The REST client can ask for a specific representation via the HTTP protocol (content negotiation)
4.A RESTFul web services are based on HTTP methods and the concept of REST. A RESTFul web service defines the base URI for the services
===>jersy type controller
@Path("/authenticate")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
===>spring web service
@GetMapping("books")
No comments:
Post a Comment