-
Notifications
You must be signed in to change notification settings - Fork 171
/
openapi_swagger.json
96 lines (96 loc) · 2.09 KB
/
openapi_swagger.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
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
{
"consumes": [
"application/json"
],
"definitions": {
"listShelvesResponse": {
"properties": {
"shelves": {
"items": {
"$ref": "#/definitions/shelf"
},
"type": "array"
}
},
"type": "object"
},
"shelf": {
"properties": {
"name": {
"type": "string"
},
"theme": {
"type": "string"
}
},
"required": [
"name",
"theme"
]
}
},
"host": "examples-sidecar-backend.endpoints.cloudesf-testing.cloud.goog",
"info": {
"description": "Configuration for ESPv2 in sidecar mode where x-google-backend is defined without an address.",
"title": "Examples - Sidecar Backend",
"version": "1.0.0"
},
"paths": {
"/shelves": {
"get": {
"description": "Returns all shelves in the bookstore.",
"operationId": "listShelves",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "List of shelves in the bookstore.",
"schema": {
"$ref": "#/definitions/listShelvesResponse"
}
}
},
"x-google-backend": {
"deadline": "7.5"
}
},
"post": {
"description": "Creates a new shelf in the bookstore.",
"operationId": "createShelf",
"parameters": [
{
"description": "A shelf resource to create.",
"in": "body",
"name": "shelf",
"required": true,
"schema": {
"$ref": "#/definitions/shelf"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "A newly created shelf resource.",
"schema": {
"$ref": "#/definitions/shelf"
}
}
}
}
}
},
"produces": [
"application/json"
],
"schemes": [
"https"
],
"swagger": "2.0",
"x-google-backend": {
"deadline": "25"
}
}