@Path(value="/pet") public class PetResource extends Object
| Constructor and Description |
|---|
PetResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addPet(Pet pet) |
javax.ws.rs.core.Response |
deletePet(String apiKey,
Long petId) |
javax.ws.rs.core.Response |
downloadFile(Long petId) |
javax.ws.rs.core.Response |
findPetsByStatus(String status) |
javax.ws.rs.core.Response |
findPetsByTags(String apiKey,
String tags)
Deprecated.
|
javax.ws.rs.core.Response |
getPetById(Long petId) |
javax.ws.rs.core.Response |
updatePet(Pet pet) |
javax.ws.rs.core.Response |
updatePetWithForm(Long petId,
String name,
String status) |
@GET
@Path(value="/{petId}")
public javax.ws.rs.core.Response getPetById(@PathParam(value="petId")
Long petId)
throws NotFoundException
NotFoundException@GET
@Path(value="/{petId}/download")
public javax.ws.rs.core.Response downloadFile(@PathParam(value="petId")
Long petId)
throws NotFoundException
NotFoundException@DELETE
@Path(value="/{petId}")
public javax.ws.rs.core.Response deletePet(@HeaderParam(value="api_key")
String apiKey,
@PathParam(value="petId")
Long petId)
@POST
@Consumes(value={"application/json","application/xml"})
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response addPet(Pet pet)
@PUT
@Consumes(value={"application/json","application/xml"})
public javax.ws.rs.core.Response updatePet(Pet pet)
@GET @Path(value="/findByStatus") public javax.ws.rs.core.Response findPetsByStatus(String status)
@GET @Path(value="/findByTags") @Deprecated public javax.ws.rs.core.Response findPetsByTags(@HeaderParam(value="apiKey") String apiKey, @QueryParam(value="tags") String tags)
Copyright © 2021 Eclipse Foundation. All rights reserved.