-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_openapi.bash
More file actions
executable file
·51 lines (41 loc) · 2.79 KB
/
update_openapi.bash
File metadata and controls
executable file
·51 lines (41 loc) · 2.79 KB
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
#!/bin/bash
if ! command -v jq >/dev/null 2>&1 ; then
echo "'jq' not found, please install it first"
exit 1
fi
if ! command -v curl >/dev/null 2>&1 ; then
echo "'curl' not found, please install it first"
exit 1
fi
# Update OpenAPI for HTTP Gateway
curl https://http-gateway.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://http-gateway.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/http-gateway.json
# Update OpenAPI for Stream Configuration Service
curl https://stream-configuration-service.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://stream-configuration-service.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/stream-configuration-service.json
# Update OpenAPI for Stream Service
curl https://stream-service.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://stream-service.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/stream-service.json
# Update OpenAPI for Egress Service
curl https://egress-service.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://egress-service.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/egress-service.json
# Update OpenAPI for Notification Service
curl https://notification-service.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://notification-service.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/notification-service.json
# Update OpenAPI for Export Service
curl https://export-service.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://export-service.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/export-service.json
# Update OpenAPI for Export Service
curl https://usage-service.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://usage-service.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/usage-service.json
# Update OpenAPI for Schema Server
curl https://schema.vatis.tech/api-docs | \
jq '.components.schemas.ErrorResponse.properties.nestedErrors.items = {"type": "object"} | .servers = [{"url": "https://schema.vatis.tech", "description": "Default server"}]' \
> api-reference/openapi/schema-server.json