-
Notifications
You must be signed in to change notification settings - Fork 5
/
faker-api.yaml
341 lines (329 loc) · 8.21 KB
/
faker-api.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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
openapi: 3.0.0
info:
title: Faker API - by Alessandro Pietrantonio
version: 1.0.0
description: |
_locale #
Default: en_US
This parameter means the language of the API response we want to get.
These codes are language codes that follow the ISO 639-1 standard, which is a two-letter system for identifying languages. The codes are combined with a two-letter country code (ISO 3166-1), separated by an underscore. Examples -
fr_FR: French language spoken in France
it_IT: Italian language spoken in Italy
en_US: English language spoken in the United States
en_GB: English language spoken in the United Kingdom
https://fakerapi.it/api/v1/persons?_locale=fr_FR
This example returns people with french names.
_quantity #
Default: 10
Min: 1 - Max: 1000
This parameter means the number of rows we want to obtain and accept only integers. If you request more than 1000 rows (maximum) the system will return 1000 rows anyway.
_seed
Default: null
This parameter accept an integer and allows to get always the same results. So, executing the same request with _seed parameter set to the same value (ex. 12345) the results will never change.
servers:
- url: https://fakerapi.it
paths:
/api/v1/addresses:
get:
tags:
- default
summary: Addresses
description: Get addresses with given locale
operationId: getAddresses
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/books:
get:
tags:
- default
summary: Books
description: Get books
operationId: getBooks
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/companies:
get:
tags:
- default
summary: Companies
operationId: getCompanies
description: Get companies with given locale
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/credit_cards:
get:
tags:
- default
summary: Credit Cards
operationId: getCreditCardss
description: Get credit cards with given locale
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/images:
get:
tags:
- default
summary: Images
operationId: getImages
description: Get images with height of given pixels and given locale
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
- name: _type
description: Kind of images, example kittens
in: query
schema:
type: string
example:
- name: _height
in: query
schema:
type: integer
example: "300"
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/persons:
get:
tags:
- default
summary: Persons
operationId: getPersons
description: Get persons with given locale and given gender
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
- name: _gender
in: query
schema:
type: string
example: female
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/places:
get:
tags:
- default
summary: Places
operationId: getPlaces
description: Get places
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/products:
get:
tags:
- default
summary: Products
operationId: getProducts
description: >-
Get products with given locale and specified parameters
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: en_US
- name: _taxes
in: query
schema:
type: integer
example: "10"
- name: _categories_type
description: Example value, string
in: query
schema:
type: string
example: string
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/texts:
get:
tags:
- default
summary: Texts
operationId: getTexts
description: Get texts with given locale and characters length
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _locale
in: query
schema:
type: string
example: it_IT
- name: _characters
in: query
schema:
type: integer
example: "250"
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/users:
get:
tags:
- default
summary: Users
operationId: getUsers
description: Get users with given locale and gender
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: _gender
in: query
schema:
type: string
enum: [male, female]
example: male
responses:
"200":
description: Successful response
content:
application/json: {}
/api/v1/custom:
get:
tags:
- default
summary: Custom
operationId: getCustom
description: >-
Get rows with first name, last name, country, birthday, email and
vat
parameters:
- name: _quantity
in: query
schema:
type: integer
example: "100"
- name: name
in: query
schema:
type: string
example: firstName
- name: surname
in: query
schema:
type: string
example: lastName
- name: from
in: query
schema:
type: string
example: country
- name: birthday
in: query
schema:
type: string
example: date
- name: vatId
in: query
schema:
type: string
example: vat
responses:
"200":
description: Successful response
content:
application/json: {}