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

38 lines
690 B
GraphQL

#
# OpenAPI Petstore
#
#
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
#
# Version: 1.0.0
#
# Generated by OpenAPI Generator: https://openapi-generator.tech
# A pet for sale in the pet store
type Pet {
id: Int!
category: Category
name: String!
photoUrls: String!
tags: Tag
# pet status in the store
status: PetStatusEnum
}
input PetInput {
id: Int!
category: CategoryInput
name: String!
photoUrls: [String!]
tags: [TagInput]
# pet status in the store
status: PetStatusEnum
}
# pet status in the store
enum PetStatusEnum {
available
pending
sold
}