JAX-RS
provided annotations for implementing web resources.POJOs
that are annotated either with @Path or have at least one method annotated with @Path
, @GET
, @POST
, @DELETE
, @PUT
, etc.import javax.ws.rs.Path;
/**
* InterviewBitService is a root resource class that is exposed at 'resource_service' path
*/
@Path('resource_service')
public class InterviewBitService {
// Defined methods
}