1
1
openapi : 3.0.3
2
2
info :
3
- title : Simple Items API
4
- version : " 1.0.0 "
5
- description : A simple API to manage items.
3
+ title : Large API Specification
4
+ description : A comprehensive API specification for testing wrapper generation.
5
+ version : 1.0.0
6
6
servers :
7
7
- url : https://api.example.com/v1
8
+
8
9
paths :
9
- /items :
10
+ /users :
10
11
get :
11
- summary : Retrieve a list of items.
12
+ summary : Get all users
13
+ operationId : getAllUsers
12
14
responses :
13
15
' 200 ' :
14
- description : A JSON array of items.
16
+ description : A list of users
15
17
content :
16
18
application/json :
17
19
schema :
18
20
type : array
19
21
items :
20
- $ref : ' #/components/schemas/Item '
22
+ $ref : ' #/components/schemas/User '
21
23
post :
22
- summary : Create a new item.
24
+ summary : Create a new user
25
+ operationId : createUser
23
26
requestBody :
24
27
required : true
25
28
content :
26
29
application/json :
27
30
schema :
28
- $ref : ' #/components/schemas/Item '
31
+ $ref : ' #/components/schemas/User '
29
32
responses :
30
33
' 201 ' :
31
- description : Item created successfully.
32
- /items/{itemId} :
34
+ description : User created successfully
35
+
36
+ /users/{userId} :
33
37
get :
34
- summary : Retrieve a specific item by ID.
38
+ summary : Get user by ID
39
+ operationId : getUserById
35
40
parameters :
36
- - in : path
37
- name : itemId
41
+ - name : userId
42
+ in : path
38
43
required : true
39
44
schema :
40
45
type : string
41
46
responses :
42
47
' 200 ' :
43
- description : A single item.
48
+ description : User details
44
49
content :
45
50
application/json :
46
51
schema :
47
- $ref : ' #/components/schemas/Item'
52
+ $ref : ' #/components/schemas/User'
53
+ put :
54
+ summary : Update user
55
+ operationId : updateUser
56
+ parameters :
57
+ - name : userId
58
+ in : path
59
+ required : true
60
+ schema :
61
+ type : string
62
+ requestBody :
63
+ required : true
64
+ content :
65
+ application/json :
66
+ schema :
67
+ $ref : ' #/components/schemas/User'
68
+ responses :
69
+ ' 200 ' :
70
+ description : User updated successfully
71
+ delete :
72
+ summary : Delete user
73
+ operationId : deleteUser
74
+ parameters :
75
+ - name : userId
76
+ in : path
77
+ required : true
78
+ schema :
79
+ type : string
80
+ responses :
81
+ ' 204 ' :
82
+ description : User deleted successfully
83
+
84
+ /auth/login :
85
+ post :
86
+ summary : User login
87
+ operationId : loginUser
88
+ requestBody :
89
+ required : true
90
+ content :
91
+ application/json :
92
+ schema :
93
+ $ref : ' #/components/schemas/LoginRequest'
94
+ responses :
95
+ ' 200 ' :
96
+ description : Successful login
97
+ content :
98
+ application/json :
99
+ schema :
100
+ $ref : ' #/components/schemas/AuthResponse'
101
+
102
+ /products :
103
+ get :
104
+ summary : Get all products
105
+ operationId : getAllProducts
106
+ responses :
107
+ ' 200 ' :
108
+ description : List of products
109
+ content :
110
+ application/json :
111
+ schema :
112
+ type : array
113
+ items :
114
+ $ref : ' #/components/schemas/Product'
115
+
116
+ /orders :
117
+ post :
118
+ summary : Create an order
119
+ operationId : createOrder
120
+ requestBody :
121
+ required : true
122
+ content :
123
+ application/json :
124
+ schema :
125
+ $ref : ' #/components/schemas/Order'
126
+ responses :
127
+ ' 201 ' :
128
+ description : Order created
129
+
130
+ /payments :
131
+ post :
132
+ summary : Process a payment
133
+ operationId : processPayment
134
+ requestBody :
135
+ required : true
136
+ content :
137
+ application/json :
138
+ schema :
139
+ $ref : ' #/components/schemas/Payment'
140
+ responses :
141
+ ' 200 ' :
142
+ description : Payment processed
143
+
48
144
components :
49
145
schemas :
50
- Item :
146
+ User :
147
+ type : object
148
+ properties :
149
+ id :
150
+ type : string
151
+ name :
152
+ type : string
153
+ email :
154
+ type : string
155
+
156
+ LoginRequest :
157
+ type : object
158
+ properties :
159
+ email :
160
+ type : string
161
+ password :
162
+ type : string
163
+
164
+ AuthResponse :
165
+ type : object
166
+ properties :
167
+ token :
168
+ type : string
169
+
170
+ Product :
51
171
type : object
52
172
properties :
53
173
id :
@@ -56,3 +176,25 @@ components:
56
176
type : string
57
177
price :
58
178
type : number
179
+
180
+ Order :
181
+ type : object
182
+ properties :
183
+ id :
184
+ type : string
185
+ userId :
186
+ type : string
187
+ productId :
188
+ type : string
189
+ quantity :
190
+ type : integer
191
+
192
+ Payment :
193
+ type : object
194
+ properties :
195
+ id :
196
+ type : string
197
+ orderId :
198
+ type : string
199
+ amount :
200
+ type : number
0 commit comments