Path
Identifies the URI path that will serve requests for. Paths are relative. For an annotated class the base URI is the application path, see ApplicationPath . For an annotated method the base URI is the effective URI of the containing class.
The @javax.ws.rs.Path annotation is used to map the URI of the incoming HTTP request to RESTful Resources (Java classes and methods). Paths are relative. It supports both simple strings and regular expressions as values
//Maps an HTTP GET at /books/ to the all() method
@Path("/books")
public class BooksResource {
@GET
public Response all(){
//send HTTP 200 as response
return Response.ok().build();
}
}https://abhishek-gupta.gitbook.io/rest-assured-with-jaxrs/jax-rs-core-part-i