William Cheng 4be605bcb7
GraphQL Server (#1603)
* Add GraphQL express/apollo server generator

* add basic resolvers; adjust parameters/input types

* small adjustments and improvements

* adjust logger config for GraphQL generators

* remove MaxPermSize form bash script as it will be removed from later Java versions; add isNullable utility helper method; Adjust TODOs for graphql implementation

* re-created samples for graphql config and server generators

* re-added templates for graphql config generator

* add graphql-config-petstore bash script

* add isNullable utility method

* fix javadoc issues

* adjust licence headers

* rename Generator to Codegen for GraphQL classes

* renaming, minor enhancement to graphql generator

* add graphql server samples

* add windows batch files, rename directory
2018-12-05 18:20:53 +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(pet)

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(pet)

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