Skip to content

Commit 5b207b0

Browse files
authored
chore: Revert "Update API client" (#24)
1 parent 599c376 commit 5b207b0

1 file changed

Lines changed: 57 additions & 56 deletions

File tree

.openapi/srs-fleet-manager.json

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,37 @@
11
{
22
"openapi": "3.0.2",
33
"info": {
4-
"title": "Service Registry Service - Fleet Manager - v0",
4+
"title": "Service Registry Service - Fleet Manager - v1",
55
"version": "0.0.1",
66
"description": "Main entry point for the system, responsible for all sorts of management operations for the whole service of managed service registry.",
77
"license": {
88
"name": "Apache 2.0",
99
"url": "https://www.apache.org/licenses/LICENSE-2.0"
1010
}
1111
},
12+
"servers": [
13+
{
14+
"url": "https://api.openshift.com",
15+
"description": "Main (production) server"
16+
},
17+
{
18+
"url": "https://api.stage.openshift.com",
19+
"description": "Staging server"
20+
},
21+
{
22+
"url": "http://localhost:8000",
23+
"description": "localhost"
24+
},
25+
{
26+
"url": "/",
27+
"description": "current domain"
28+
}
29+
],
1230
"paths": {
1331
"/api/serviceregistry_mgmt/v1/registries": {
1432
"summary": "Manage the list of all registries.",
1533
"description": "",
1634
"get": {
17-
"tags": [
18-
"Registries"
19-
],
2035
"responses": {
2136
"200": {
2237
"content": {
@@ -37,7 +52,12 @@
3752
},
3853
"operationId": "getRegistries",
3954
"summary": "Get the list of all registries.",
40-
"description": ""
55+
"description": "",
56+
"security": [
57+
{
58+
"Bearer": []
59+
}
60+
]
4161
},
4262
"post": {
4363
"requestBody": {
@@ -51,9 +71,6 @@
5171
},
5272
"required": true
5373
},
54-
"tags": [
55-
"Registries"
56-
],
5774
"responses": {
5875
"202": {
5976
"content": {
@@ -71,16 +88,18 @@
7188
},
7289
"operationId": "createRegistry",
7390
"summary": "Create a Registry.",
74-
"description": ""
91+
"description": "",
92+
"security": [
93+
{
94+
"Bearer": []
95+
}
96+
]
7597
}
7698
},
7799
"/api/serviceregistry_mgmt/v1/registries/{registryId}": {
78100
"summary": "Manage a specific Registry.",
79101
"description": "",
80102
"get": {
81-
"tags": [
82-
"Registries"
83-
],
84103
"responses": {
85104
"200": {
86105
"content": {
@@ -101,12 +120,14 @@
101120
},
102121
"operationId": "getRegistry",
103122
"summary": "Get a Registry",
104-
"description": "Gets the details of a single instance of a `Registry`."
123+
"description": "Gets the details of a single instance of a `Registry`.",
124+
"security": [
125+
{
126+
"Bearer": []
127+
}
128+
]
105129
},
106130
"delete": {
107-
"tags": [
108-
"Registries"
109-
],
110131
"responses": {
111132
"204": {
112133
"description": "Successful response."
@@ -120,53 +141,36 @@
120141
},
121142
"operationId": "deleteRegistry",
122143
"summary": "Delete a Registry",
123-
"description": "Deletes an existing `Registry`."
144+
"description": "Deletes an existing `Registry`.",
145+
"security": [
146+
{
147+
"Bearer": []
148+
}
149+
]
124150
},
125151
"parameters": [
126152
{
127153
"name": "registryId",
128154
"description": "A unique identifier for a `Registry`.",
129155
"schema": {
130-
"type": "integer"
156+
"type": "string"
131157
},
132158
"in": "path",
133159
"required": true
134160
}
135161
]
136-
},
137-
"/api/serviceregistry_mgmt/v1": {
138-
"summary": "Get the OpenAPI schema for version 1 of this REST API.",
139-
"get": {
140-
"tags": [
141-
"Info"
142-
],
143-
"responses": {
144-
"200": {
145-
"content": {
146-
"application/json": {}
147-
},
148-
"description": "A successful response."
149-
}
150-
},
151-
"operationId": "getSchema",
152-
"summary": "Get the OpenAPI schema for version 1 of this REST API."
153-
}
154162
}
155163
},
156164
"components": {
157165
"schemas": {
158166
"Registry": {
159167
"title": "Root Type for Registry",
160168
"description": "Service Registry instance within a multi-tenant deployment.",
161-
"required": [
162-
"id",
163-
"registryUrl",
164-
"status"
165-
],
169+
"required": ["id", "registryUrl", "status"],
166170
"type": "object",
167171
"properties": {
168172
"id": {
169-
"type": "integer"
173+
"type": "string"
170174
},
171175
"status": {
172176
"$ref": "#/components/schemas/RegistryStatus",
@@ -185,7 +189,7 @@
185189
}
186190
},
187191
"example": {
188-
"id": 42,
192+
"id": "dsadas",
189193
"name": "my-registry",
190194
"registryUrl": "https://registry.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706",
191195
"status": {
@@ -197,10 +201,7 @@
197201
},
198202
"RegistryStatus": {
199203
"description": "",
200-
"required": [
201-
"value",
202-
"lastUpdated"
203-
],
204+
"required": ["value", "lastUpdated"],
204205
"type": "object",
205206
"properties": {
206207
"lastUpdated": {
@@ -234,16 +235,9 @@
234235
},
235236
"RegistryStatusValue": {
236237
"description": "",
237-
"enum": [
238-
"PROVISIONING",
239-
"AVAILABLE",
240-
"UNAVAILABLE"
241-
],
238+
"enum": ["PROVISIONING", "AVAILABLE", "UNAVAILABLE"],
242239
"type": "string"
243240
},
244-
"ErrorInfo": {
245-
"$ref": "#/components/schemas/ErrorInfo1"
246-
},
247241
"ErrorInfo1": {
248242
"title": "Root Type for ErrorInfo",
249243
"description": "Details about a specific error returned by the server.",
@@ -265,6 +259,13 @@
265259
}
266260
}
267261
},
262+
"securitySchemes": {
263+
"Bearer": {
264+
"scheme": "bearer",
265+
"bearerFormat": "JWT",
266+
"type": "http"
267+
}
268+
},
268269
"responses": {
269270
"NotFound": {
270271
"$ref": "#/components/responses/NotFound1"
@@ -294,4 +295,4 @@
294295
}
295296
}
296297
}
297-
}
298+
}

0 commit comments

Comments
 (0)