All URIs are relative to http://petstore.swagger.io/v2
Method | HTTP request | Description |
---|---|---|
addPet | POST /pet | Add a new pet to the store |
deletePet | DELETE /pet/{petId} | Deletes a pet |
findPetsByStatus | GET /pet/findByStatus | Finds Pets by status |
findPetsByTags | GET /pet/findByTags | Finds Pets by tags |
getPetById | GET /pet/{petId} | Find pet by ID |
updatePet | PUT /pet | Update an existing pet |
updatePetWithForm | POST /pet/{petId} | Updates a pet in the store with form data |
uploadFile | POST /pet/{petId}/uploadImage | uploads an image |
Pet addPet(Pet)
Add a new pet to the store
Name | Type | Description | Notes |
---|---|---|---|
Pet | Pet | Pet object that needs to be added to the store |
- Content-Type: application/json, application/xml
- Accept: application/xml, application/json
deletePet(petId, api_key)
Deletes a pet
Name | Type | Description | Notes |
---|---|---|---|
petId | Long | Pet id to delete | [default to null] |
api_key | String | [optional] [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
List findPetsByStatus(status)
Finds Pets by status
Multiple status values can be provided with comma separated strings
Name | Type | Description | Notes |
---|---|---|---|
status | List | Status values that need to be considered for filter | [default to null] [enum: available, pending, sold] |
- Content-Type: Not defined
- Accept: application/xml, application/json
List findPetsByTags(tags)
Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Name | Type | Description | Notes |
---|---|---|---|
tags | List | Tags to filter by | [default to null] |
- Content-Type: Not defined
- Accept: application/xml, application/json
Pet getPetById(petId)
Find pet by ID
Returns a single pet
Name | Type | Description | Notes |
---|---|---|---|
petId | Long | ID of pet to return | [default to null] |
- Content-Type: Not defined
- Accept: application/xml, application/json
Pet updatePet(Pet)
Update an existing pet
Name | Type | Description | Notes |
---|---|---|---|
Pet | Pet | Pet object that needs to be added to the store |
- Content-Type: application/json, application/xml
- Accept: application/xml, application/json
updatePetWithForm(petId, name, status)
Updates a pet in the store with form data
Name | Type | Description | Notes |
---|---|---|---|
petId | Long | ID of pet that needs to be updated | [default to null] |
name | String | Updated name of the pet | [optional] [default to null] |
status | String | Updated status of the pet | [optional] [default to null] |
null (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: Not defined
ApiResponse uploadFile(petId, additionalMetadata, file)
uploads an image
Name | Type | Description | Notes |
---|---|---|---|
petId | Long | ID of pet to update | [default to null] |
additionalMetadata | String | Additional data to pass to server | [optional] [default to null] |
file | File | file to upload | [optional] [default to null] |
- Content-Type: multipart/form-data
- Accept: application/json