Class PetResource


  • @Path("/pet")
    public class PetResource
    extends Object
    • Constructor Detail

      • PetResource

        public PetResource()
    • Method Detail

      • deletePet

        @DELETE
        @Path("/{petId}")
        public jakarta.ws.rs.core.Response deletePet​(@HeaderParam("apiKey")
                                                     String apiKey,
                                                     @PathParam("petId")
                                                     Long petId)
      • addPet

        @POST
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public jakarta.ws.rs.core.Response addPet​(Pet pet)
      • updatePet

        @PUT
        @Consumes({"application/json","application/xml"})
        public jakarta.ws.rs.core.Response updatePet​(Pet pet)
      • findPetsByTags

        @GET
        @Path("/findByTags")
        @Produces("application/json")
        @Deprecated
        public jakarta.ws.rs.core.Response findPetsByTags​(@HeaderParam("apiKey")
                                                          String apiKey,
                                                          @QueryParam("tags")
                                                          String tags)
        Deprecated.
      • updatePetWithForm

        @POST
        @Path("/{petId}")
        @Consumes("application/x-www-form-urlencoded")
        public jakarta.ws.rs.core.Response updatePetWithForm​(@PathParam("petId")
                                                             Long petId,
                                                             @FormParam("name")
                                                             String name,
                                                             @FormParam("status")
                                                             String status)
      • updatePetWithCsv

        @POST
        @Path("/{petId}")
        @Consumes("text/csv")
        @Produces("text/csv")
        public jakarta.ws.rs.core.Response updatePetWithCsv​(@PathParam("petId")
                                                            Long petId,
                                                            String commaSeparatedValues)