-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventory.yaml
235 lines (235 loc) · 4.96 KB
/
inventory.yaml
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
openapi: 3.0.1
info:
title: Inventory
description: Angular haladó tanfolyam - 1.nap
version: 1.0.0
servers:
- url: https://autsoftangular.azurewebsites.net/api
paths:
/Inventory:
get:
tags:
- Inventory
operationId: GetItems
parameters:
- name: PageSize
in: query
schema:
type: integer
format: int32
nullable: true
- name: Page
in: query
schema:
type: integer
format: int32
nullable: true
- name: OrderBy
in: query
schema:
type: string
nullable: true
- name: OrderDirection
in: query
schema:
type: integer
nullable: true
enum:
- 1
- 2
x-schema:
$ref: '#/components/schemas/OrderDirection'
x-schema:
$ref: '#/components/schemas/OrderDirection'
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/PagingResultDtoOfItem'
post:
tags:
- Inventory
operationId: CreateItem
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
required: true
responses:
200:
description: ""
content: {}
x-codegen-request-body-name: value
/Inventory/{id}:
get:
tags:
- Inventory
operationId: GetItemsById
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int32
nullable: false
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
put:
tags:
- Inventory
operationId: UpdateItem
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int32
nullable: false
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
required: true
responses:
200:
description: ""
content: {}
x-codegen-request-body-name: value
delete:
tags:
- Inventory
operationId: DeleteItem
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int32
nullable: false
responses:
200:
description: ""
content: {}
/Inventory/Typeahead/Type:
get:
tags:
- Inventory
operationId: TypeaheadType
parameters:
- name: query
in: query
schema:
type: string
nullable: true
responses:
200:
description: ""
content:
application/json:
schema:
type: array
items:
type: string
components:
schemas:
PagingResultDtoOfItem:
required:
- currentPage
- results
- totalCount
type: object
properties:
results:
type: array
items:
$ref: '#/components/schemas/Item'
currentPage:
type: integer
format: int32
totalCount:
type: integer
format: int32
Item:
required:
- count
- countDate
type: object
properties:
id:
type: integer
format: int32
name:
type: string
description:
type: string
countDate:
type: string
format: date-time
count:
type: integer
format: int32
type:
type: string
dimension:
$ref: '#/components/schemas/Dimension'
price:
$ref: '#/components/schemas/Price'
Dimension:
required:
- depth
- height
- width
type: object
properties:
width:
type: number
format: double
height:
type: number
format: double
depth:
type: number
format: double
Price:
required:
- currency
- value
type: object
properties:
value:
type: number
format: double
currency:
$ref: '#/components/schemas/Currency'
Currency:
type: integer
description: ""
enum:
- 1
- 2
- 3
x-enumNames:
- EUR
- USD
- HUF
OrderDirection:
type: integer
description: ""
enum:
- 1
- 2
x-enumNames:
- Asc
- Desc