@Path("cats") @Consumes("application/json") public class JsonbResource extends Object
JsonbResource()
String
check()
Response
createCat(Cat cat)
createMultiple(List<Cat> addedCats)
List<Cat>
getAll()
Cat
getCat()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JsonbResource()
@Path("one") @GET @Produces("application/json") public Cat getCat()
@Path("all") @GET @Produces("application/json") public List<Cat> getAll()
@Path("schroedinger") @GET public String check()
@Path("add") @POST public Response createCat(Cat cat)
@Path("addAll") @POST public Response createMultiple(List<Cat> addedCats)