1
0
api/test/docs/PetsApi.md
2024-03-13 16:53:30 +09:00

2.3 KiB

\PetsApi

All URIs are relative to http://petstore.swagger.io/v1

Method HTTP request Description
create_pets POST /pets Create a pet
list_pets GET /pets List all pets
show_pet_by_id GET /pets/{petId} Info for a specific pet

create_pets

create_pets(pet) Create a pet

Parameters

Name Type Description Required Notes
pet Pet [required]

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_pets

Vecmodels::Pet list_pets(limit) List all pets

Parameters

Name Type Description Required Notes
limit Option<i32> How many items to return at one time (max 100)

Return type

Vecmodels::Pet

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

show_pet_by_id

models::Pet show_pet_by_id(pet_id) Info for a specific pet

Parameters

Name Type Description Required Notes
pet_id String The id of the pet to retrieve [required]

Return type

models::Pet

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]