java.lang.Object
org.eclipse.microprofile.openapi.apps.petstore.resource.PetResource

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

    • PetResource

      public PetResource()
  • Method Details

    • getPetById

      @GET @Path("/{petId}") public jakarta.ws.rs.core.Response getPetById(@PathParam("petId") Long petId) throws NotFoundException
      Throws:
      NotFoundException
    • downloadFile

      @GET @Path("/{petId}/download") public jakarta.ws.rs.core.Response downloadFile(@PathParam("petId") Long petId) throws NotFoundException
      Throws:
      NotFoundException
    • 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)