forked from loafle/openapi-generator-original
* update parser to 2.0.29 * better handling of null in dereferencing * update parser to 2.0.30 * update core to newer version * add new files * rollback to previous stable version * remove files * Fixes for python-experimental NullableShape component Co-authored-by: Justin Black <justin.a.black@gmail.com>
5.9 KiB
5.9 KiB
PetController
All URIs are relative to "/v2"
The controller class is defined in PetController.java
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 |
addPet
Mono<Pet> PetController.addPet(pet)
Add a new pet to the store
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pet | Pet | Pet object that needs to be added to the store |
Return type
Authorization
- petstore_auth, scopes:
write:pets
,read:pets
HTTP request headers
- Accepts Content-Type:
application/json
,application/xml
- Produces Content-Type:
application/xml
,application/json
deletePet
Mono<Object> PetController.deletePet(petIdapiKey)
Deletes a pet
Parameters
Name | Type | Description | Notes |
---|---|---|---|
petId | Long |
Pet id to delete | |
apiKey | String |
[optional parameter] |
Authorization
- petstore_auth, scopes:
write:pets
,read:pets
HTTP request headers
- Accepts Content-Type: Not defined
- Produces Content-Type: Not defined
findPetsByStatus
Mono<List<Pet>> PetController.findPetsByStatus(status)
Finds Pets by status
Multiple status values can be provided with comma separated strings
Parameters
Name | Type | Description | Notes |
---|---|---|---|
status | List<String> | Status values that need to be considered for filter | [enum: available , pending , sold ] |
Return type
Authorization
- petstore_auth, scopes:
read:pets
HTTP request headers
- Accepts Content-Type: Not defined
- Produces Content-Type:
application/xml
,application/json
findPetsByTags
Mono<List<Pet>> PetController.findPetsByTags(tags)
Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
tags | List<String> | Tags to filter by |
Return type
Authorization
- petstore_auth, scopes:
read:pets
HTTP request headers
- Accepts Content-Type: Not defined
- Produces Content-Type:
application/xml
,application/json
getPetById
Mono<Pet> PetController.getPetById(petId)
Find pet by ID
Returns a single pet
Parameters
Name | Type | Description | Notes |
---|---|---|---|
petId | Long |
ID of pet to return |
Return type
Authorization
- api_key
HTTP request headers
- Accepts Content-Type: Not defined
- Produces Content-Type:
application/xml
,application/json
updatePet
Mono<Pet> PetController.updatePet(pet)
Update an existing pet
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pet | Pet | Pet object that needs to be added to the store |
Return type
Authorization
- petstore_auth, scopes:
write:pets
,read:pets
HTTP request headers
- Accepts Content-Type:
application/json
,application/xml
- Produces Content-Type:
application/xml
,application/json
updatePetWithForm
Mono<Object> PetController.updatePetWithForm(petIdnamestatus)
Updates a pet in the store with form data
Parameters
Name | Type | Description | Notes |
---|---|---|---|
petId | Long |
ID of pet that needs to be updated | |
name | String |
Updated name of the pet | [optional parameter] |
status | String |
Updated status of the pet | [optional parameter] |
Authorization
- petstore_auth, scopes:
write:pets
,read:pets
HTTP request headers
- Accepts Content-Type:
application/x-www-form-urlencoded
- Produces Content-Type: Not defined
uploadFile
Mono<ModelApiResponse> PetController.uploadFile(petIdadditionalMetadata_file)
uploads an image
Parameters
Name | Type | Description | Notes |
---|---|---|---|
petId | Long |
ID of pet to update | |
additionalMetadata | String |
Additional data to pass to server | [optional parameter] |
_file | CompletedFileUpload |
file to upload | [optional parameter] |
Return type
Authorization
- petstore_auth, scopes:
write:pets
,read:pets
HTTP request headers
- Accepts Content-Type:
multipart/form-data
- Produces Content-Type:
application/json