# PetApi All URIs are relative to */v2* Method | HTTP request | Description ------------- | ------------- | ------------- [**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store [**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet [**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status [**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags [**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID [**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet [**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data [**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image [**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) ## addPet Add a new pet to the store ### Example ```bash petstore-cli addPet ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | ### Return type (empty response body) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: application/json, application/xml - **Accept**: Not Applicable [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## deletePet Deletes a pet ### Example ```bash petstore-cli deletePet petId=value api_key:value ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **integer** | Pet id to delete | [default to null] **apiKey** | **string** | | [optional] [default to null] ### Return type (empty response body) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: Not Applicable - **Accept**: Not Applicable [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## findPetsByStatus Finds Pets by status Multiple status values can be provided with comma separated strings ### Example ```bash petstore-cli findPetsByStatus Specify as: status="value1,value2,..." ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **status** | [**array[string]**](string.md) | Status values that need to be considered for filter | [default to null] ### Return type [**array[Pet]**](Pet.md) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: Not Applicable - **Accept**: application/xml, application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## findPetsByTags Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. ### Example ```bash petstore-cli findPetsByTags Specify as: tags="value1,value2,..." ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tags** | [**array[string]**](string.md) | Tags to filter by | [default to null] ### Return type [**array[Pet]**](Pet.md) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: Not Applicable - **Accept**: application/xml, application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## getPetById Find pet by ID Returns a single pet ### Example ```bash petstore-cli getPetById petId=value ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **integer** | ID of pet to return | [default to null] ### Return type [**Pet**](Pet.md) ### Authorization [api_key](../README.md#api_key) ### HTTP request headers - **Content-Type**: Not Applicable - **Accept**: application/xml, application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## updatePet Update an existing pet ### Example ```bash petstore-cli updatePet ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | ### Return type (empty response body) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: application/json, application/xml - **Accept**: Not Applicable [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## updatePetWithForm Updates a pet in the store with form data ### Example ```bash petstore-cli updatePetWithForm petId=value ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **integer** | 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] ### Return type (empty response body) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: application/x-www-form-urlencoded - **Accept**: Not Applicable [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## uploadFile uploads an image ### Example ```bash petstore-cli uploadFile petId=value ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **integer** | ID of pet to update | [default to null] **additionalMetadata** | **string** | Additional data to pass to server | [optional] [default to null] **file** | **binary** | file to upload | [optional] [default to null] ### Return type [**ApiResponse**](ApiResponse.md) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## uploadFileWithRequiredFile uploads an image (required) ### Example ```bash petstore-cli uploadFileWithRequiredFile petId=value ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **integer** | ID of pet to update | [default to null] **requiredFile** | **binary** | file to upload | [default to null] **additionalMetadata** | **string** | Additional data to pass to server | [optional] [default to null] ### Return type [**ApiResponse**](ApiResponse.md) ### Authorization [petstore_auth](../README.md#petstore_auth) ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)