1.

What do you understand by request method designator annotations?

Answer»

They are the runtime ANNOTATIONS in the JAX-RS library that are applied to JAVA METHODS. They correspond to the HTTP request methods that the clients want to make. They are @GET, @POST, @PUT, @DELETE, @HEAD.

Usage Example:

import javax.ws.rs.Path;/*** InterviewBitService is a root resource class that is exposed at 'resource_service' path*/@Path('resource_service')public class InterviewBitService { @GET public String getRESTQuestions() { // some operations } }


Discussion

No Comment Found