Class JsonbResource


  • @Path("cats")
    @Consumes("application/json")
    public class JsonbResource
    extends Object
    An example resource utilizing JSONB.
    Author:
    Adam Lindenthal
    • Constructor Detail

      • JsonbResource

        public JsonbResource()
    • Method Detail

      • getCat

        @Path("one")
        @GET
        @Produces("application/json")
        public Cat getCat()
      • getAll

        @Path("all")
        @GET
        @Produces("application/json")
        public List<Cat> getAll()
      • check

        @Path("schroedinger")
        @GET
        public String check()
      • createCat

        @Path("add")
        @POST
        public jakarta.ws.rs.core.Response createCat​(Cat cat)
      • createMultiple

        @Path("addAll")
        @POST
        public jakarta.ws.rs.core.Response createMultiple​(List<Cat> addedCats)