forked from Dropsource/sample-specifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshopping.json
66 lines (66 loc) · 2.15 KB
/
shopping.json
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
{
"swagger": "2.0",
"info": {
"version": "",
"title": "Shopping",
"description": ""
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"host": "acttafdk9jr4ftpqh-mock.stoplight-proxy.io",
"schemes": [
"http"
],
"paths": {
"/basket": {
"get": {
"operationId": "GET_basket",
"responses": {
"200": {
"description": "",
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"item_name": {
"type": "string"
},
"item_cost": {
"type": "integer"
},
"quantity": {
"type": "integer"
}
}
}
},
"examples": {
"application/json": [
{
"item_name": "Glass Vase",
"quantity": 3,
"item_cost": 999
},
{
"item_name": "Bookcase",
"quantity": 1,
"item_cost": 9995
},
{
"item_name": "Ornament",
"quantity": 2,
"item_cost": 1250
}
]
}
}
}
}
}
}
}