config.openapi-inject.yml Maven / Gradle / Ivy
openapi: 3.0.0
paths:
/health/${server.serviceId}:
get:
description: pass through to the liveness endpoint that belongs to backend api
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
/server/info:
get:
description: get the proxy server info and corresponding backend service info
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
/chaosmonkey:
get:
description: to get the current chaosmonkey settings
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
/chaosmonkey/{assault}:
post:
description: to update chaosmonkey settings
requestBody:
description: to update chaosmonkey settings
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
/logger:
get:
description: to get the current logging settings
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
post:
description: to modify the logging settings
requestBody:
description: to update logging settings
required: true
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
/logger/content:
get:
description: to get the content of the logs from this service.
security:
- admin-scope:
- admin
- ${server.serviceId}/admin
/modules:
get:
description: to get the all enabled modules/handlers to form a dropdown for module config reload
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
post:
description: to trigger the config reload for all modules or specified modules selected on control pane
requestBody:
description: to trigger the reload from the config server from the control pane.
required: true
security:
- admin-scope:
# okta doesn't support either for now
# for control pane to access all businesses' admin endpoints
- admin
# for each business to access their own admin endpoints
- ${server.serviceId}/admin
components:
securitySchemes:
admin-scope:
type: oauth2
description: This API uses OAuth 2 with the client credential grant flow.
flows:
clientCredentials:
scopes:
admin: admin scope to access admin endpoints © 2015 - 2025 Weber Informatics LLC | Privacy Policy