forked from loafle/openapi-generator-original
1.8 KiB
1.8 KiB
pet_api
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 |
AddPet
AddPet(body)
DeletePet
DeletePet(petId, apiKey)
FindPetsByStatus
Pet FindPetsByStatus(status)
Finds Pets by status
Multiple status values can be provided with comma separated strings
FindPetsByTags
Pet FindPetsByTags(tags)
Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
GetPetById
Pet GetPetById(petId)
Find pet by ID
UpdatePet
UpdatePet(body)
UpdatePetWithForm
UpdatePetWithForm(petId, name, status)
Updates a pet in the store with form data
UploadFile
ApiResponse UploadFile(petId, additionalMetadata, file)
uploads an image