Skip to content

Instantly share code, notes, and snippets.

@renepardon
Last active November 12, 2018 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renepardon/c600f2b207858301f4f36e5206fea395 to your computer and use it in GitHub Desktop.
Save renepardon/c600f2b207858301f4f36e5206fea395 to your computer and use it in GitHub Desktop.
type Query {
FindPetsByStatus(status: [String!]): [Pet]
FindPetsByTags(tags: [String!]): [Pet]
GetPetById(petId: Int!): Pet
GetInventory(): Int!
GetOrderById(orderId: Int!): Order
GetUserByName(username: String!): User
LoginUser(username: String!, password: String!): String!
LogoutUser(): null
}type Mutation {
AddPet(pet: Pet): null
DeletePet(petId: Int!, apiKey: String!): null
UpdatePet(pet: Pet): null
UpdatePetWithForm(petId: Int!, name: String!, status: String!): null
UploadFile(petId: Int!, additionalMetadata: String!, file: String!): ApiResponse
DeleteOrder(orderId: String!): null
PlaceOrder(order: Order): Order
CreateUser(user: User): null
CreateUsersWithArrayInput(user: [User]): null
CreateUsersWithListInput(user: [User]): null
DeleteUser(username: String!): null
UpdateUser(username: String!, user: User): null
}
type ApiResponse {
code: Int!
type: String!
message: String!
}
type Category {
id: Int!
name: String!
}
type InlineObject {
name: String!
status: String!
}
type InlineObject1 {
additionalMetadata: String!
file: String!
}
type Order {
id: Int!
petId: Int!
quantity: Int!
shipDate: String!
status: OrderStatusEnum
complete: Boolean!
}
enum OrderStatusEnum {
placed
approved
delivered
}
type Pet {
id: Int!
category: Category
name: String!
photoUrls: [String!]
tags: [Tag]
status: PetStatusEnum
}
enum PetStatusEnum {
available
pending
sold
}
type Tag {
id: Int!
name: String!
}
type User {
id: Int!
username: String!
firstName: String!
lastName: String!
email: String!
password: String!
phone: String!
userStatus: Int!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment