-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpetstore.graphql
255 lines (207 loc) · 4.81 KB
/
petstore.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# source:
# timestamp: Mon Jan 29 2018 16:16:30 GMT+0100 (W. Europe Standard Time)
type addPet {
"""default field"""
empty: String
}
type createUser {
"""default field"""
empty: String
}
type createUsersWithArrayInput {
"""default field"""
empty: String
}
type createUsersWithListInput {
"""default field"""
empty: String
}
type deleteOrder {
"""default field"""
empty: String
}
type deletePet {
"""default field"""
empty: String
}
type deleteUser {
"""default field"""
empty: String
}
type findPetsByStatus_items {
id: String
category: findPetsByStatus_items_category
name: String
photoUrls: [String]
tags: [findPetsByStatus_items_tags_items]
"""pet status in the store"""
status: String
}
type findPetsByStatus_items_category {
id: String
name: String
}
type findPetsByStatus_items_tags_items {
id: String
name: String
}
type findPetsByTags_items {
id: String
category: findPetsByTags_items_category
name: String
photoUrls: [String]
tags: [findPetsByTags_items_tags_items]
"""pet status in the store"""
status: String
}
type findPetsByTags_items_category {
id: String
name: String
}
type findPetsByTags_items_tags_items {
id: String
name: String
}
type getInventory {
"""default field"""
empty: String
}
type getOrderById {
id: String
petId: String
quantity: Int
shipDate: String
"""Order Status"""
status: String
complete: Boolean
}
type getPetById {
id: String
category: getPetById_category
name: String
photoUrls: [String]
tags: [getPetById_tags_items]
"""pet status in the store"""
status: String
}
type getPetById_category {
id: String
name: String
}
type getPetById_tags_items {
id: String
name: String
}
type getUserByName {
id: String
username: String
firstName: String
lastName: String
email: String
password: String
phone: String
"""User Status"""
userStatus: Int
}
type loginUser {
"""default field"""
empty: String
}
type logoutUser {
"""default field"""
empty: String
}
type Mutation {
addPet(body: param_addPet_body): addPet
updatePet(body: param_updatePet_body): updatePet
updatePetWithForm(petId: String, name: String, status: String): updatePetWithForm
deletePet(api_key: String, petId: String): deletePet
placeOrder(body: param_placeOrder_body): placeOrder
"""
For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors
"""
deleteOrder(orderId: String): deleteOrder
"""This can only be done by the logged in user."""
createUser(body: param_createUser_body): createUser
createUsersWithArrayInput(body: param_createUsersWithArrayInput_body): createUsersWithArrayInput
createUsersWithListInput(body: param_createUsersWithListInput_body): createUsersWithListInput
"""This can only be done by the logged in user."""
updateUser(username: String, body: param_updateUser_body): updateUser
"""This can only be done by the logged in user."""
deleteUser(username: String): deleteUser
}
"""Pet object that needs to be added to the store"""
input param_addPet_body {
"""default field"""
empty: String
}
"""Created user object"""
input param_createUser_body {
"""default field"""
empty: String
}
"""List of user object"""
input param_createUsersWithArrayInput_body {
"""default field"""
empty: String
}
"""List of user object"""
input param_createUsersWithListInput_body {
"""default field"""
empty: String
}
"""order placed for purchasing the pet"""
input param_placeOrder_body {
"""default field"""
empty: String
}
"""Pet object that needs to be added to the store"""
input param_updatePet_body {
"""default field"""
empty: String
}
"""Updated user object"""
input param_updateUser_body {
"""default field"""
empty: String
}
type placeOrder {
id: String
petId: String
quantity: Int
shipDate: String
"""Order Status"""
status: String
complete: Boolean
}
type Query {
"""Multiple status values can be provided with comma separated strings"""
findPetsByStatus(status: [String]): [findPetsByStatus_items]
"""
Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
"""
findPetsByTags(tags: [String]): [findPetsByTags_items]
"""Returns a single pet"""
getPetById(petId: String): getPetById
"""Returns a map of status codes to quantities"""
getInventory: getInventory
"""
For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions
"""
getOrderById(orderId: String): getOrderById
loginUser(username: String, password: String): loginUser
logoutUser: logoutUser
getUserByName(username: String): getUserByName
}
type updatePet {
"""default field"""
empty: String
}
type updatePetWithForm {
"""default field"""
empty: String
}
type updateUser {
"""default field"""
empty: String
}