Package org.everrest.sample.guice
Class BookService
- java.lang.Object
-
- org.everrest.sample.guice.BookService
-
@Path("books") public class BookService extends Object- Author:
- andrew00x
-
-
Constructor Summary
Constructors Constructor Description BookService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bookget(String id)Collection<Book>getAll()jakarta.ws.rs.core.Responseput(Book book, jakarta.ws.rs.core.UriInfo uriInfo)
-
-
-
Method Detail
-
get
@Path("/{id}") @GET @Produces("application/json") public Book get(@PathParam("id") String id) throws BookNotFoundException- Throws:
BookNotFoundException
-
getAll
@GET @Produces("application/json") public Collection<Book> getAll()
-
put
@PUT @Consumes("application/json") public jakarta.ws.rs.core.Response put(Book book, @Context jakarta.ws.rs.core.UriInfo uriInfo)
-
-