William Cheng 03711d572f
Rename graphql-server to graphql-nodejs-express-server (#1822)
* rename graphql server

* update windows batch file

* fix openpai3 shell script
2019-01-15 22:54:06 +08:00

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)

Add a new pet to the store

DeletePet

DeletePet(petId, apiKey)

Deletes a pet

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

Returns a single pet

UpdatePet

UpdatePet(body)

Update an existing pet

UpdatePetWithForm

UpdatePetWithForm(petId, name, status)

Updates a pet in the store with form data

UploadFile

ApiResponse UploadFile(petId, additionalMetadata, file)

uploads an image