-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-test.json
More file actions
202 lines (202 loc) · 4.75 KB
/
Copy pathopenapi-test.json
File metadata and controls
202 lines (202 loc) · 4.75 KB
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
{
"openapi": "3.0.3",
"info": {
"title": "Pet Shop & E-Commerce API",
"version": "2.0.0",
"description": "A realistic multi-module API for testing api-tree CLI with full HTTP method coverage"
},
"paths": {
"/api/v1/pets": {
"get": {
"summary": "List all pets with pagination and filtering",
"tags": ["pets"]
},
"post": {
"summary": "Register a new pet",
"tags": ["pets"]
}
},
"/api/v1/pets/{id}": {
"get": {
"summary": "Get pet details by ID",
"tags": ["pets"]
},
"put": {
"summary": "Replace pet information entirely",
"tags": ["pets"]
},
"patch": {
"summary": "Update pet adoption status",
"tags": ["pets"]
},
"delete": {
"summary": "Remove pet from the system",
"tags": ["pets"]
}
},
"/api/v1/pets/{id}/photos": {
"get": {
"summary": "List all photos of a pet",
"tags": ["pets"]
},
"post": {
"summary": "Upload a new pet photo",
"tags": ["pets"]
}
},
"/api/v1/pets/{id}/photos/{photoId}": {
"delete": {
"summary": "Delete a pet photo",
"tags": ["pets"]
},
"patch": {
"summary": "Set photo as cover image",
"tags": ["pets"]
}
},
"/api/v1/users": {
"get": {
"summary": "List all registered users",
"tags": ["users"]
},
"post": {
"summary": "Create a new user account",
"tags": ["users"]
}
},
"/api/v1/users/{userId}": {
"get": {
"summary": "Get user profile by ID",
"tags": ["users"]
},
"put": {
"summary": "Replace user profile entirely",
"tags": ["users"]
},
"patch": {
"summary": "Update user email or preferences",
"tags": ["users"]
},
"delete": {
"summary": "Permanently delete user account",
"tags": ["users"]
}
},
"/api/v1/users/{userId}/orders": {
"get": {
"summary": "List all orders for a user",
"tags": ["orders"]
},
"post": {
"summary": "Create a new order",
"tags": ["orders"]
}
},
"/api/v1/users/{userId}/orders/{orderId}": {
"get": {
"summary": "Get order details with tracking",
"tags": ["orders"]
},
"patch": {
"summary": "Update order delivery status",
"tags": ["orders"]
},
"delete": {
"summary": "Cancel an unpaid order",
"tags": ["orders"]
}
},
"/api/v1/products": {
"get": {
"summary": "Browse products with search and filters",
"tags": ["products"]
},
"post": {
"summary": "Add a new product to catalog",
"tags": ["products"]
}
},
"/api/v1/products/{productId}": {
"get": {
"summary": "Get product details with inventory",
"tags": ["products"]
},
"put": {
"summary": "Replace product data entirely",
"tags": ["products"]
},
"patch": {
"summary": "Toggle product publish status",
"tags": ["products"]
},
"delete": {
"summary": "Remove product from catalog",
"tags": ["products"]
}
},
"/api/v1/products/{productId}/reviews": {
"get": {
"summary": "List product reviews with ratings",
"tags": ["reviews"]
},
"post": {
"summary": "Submit a product review",
"tags": ["reviews"]
}
},
"/api/v1/products/{productId}/reviews/{reviewId}": {
"delete": {
"summary": "Remove an inappropriate review",
"tags": ["reviews"]
}
},
"/api/v1/auth/login": {
"post": {
"summary": "Authenticate and receive access token",
"tags": ["auth"]
}
},
"/api/v1/auth/register": {
"post": {
"summary": "Self-register a new account",
"tags": ["auth"]
}
},
"/api/v1/auth/refresh": {
"post": {
"summary": "Refresh expired access token",
"tags": ["auth"]
}
},
"/api/v1/auth/logout": {
"post": {
"summary": "Invalidate current session",
"tags": ["auth"]
}
},
"/api/v1/auth/password": {
"put": {
"summary": "Change account password",
"tags": ["auth"]
}
},
"/api/v1/health": {
"get": {
"summary": "Service health check",
"tags": ["system"]
}
},
"/api/v1/stats": {
"get": {
"summary": "Aggregated system metrics",
"tags": ["system"]
}
},
"/api/v1/cache": {
"delete": {
"summary": "Purge all cached data",
"tags": ["system"]
}
}
}
}