- StreamNative Console
Enable StreamNative Console OpenAPI
The StreamNative Console supports to expose OpenAPI for users to integrate, this document will guide you how to enable the OpenAPI on the StreamNative Console and the way to access.
Prerequisites
sn-platform
chart: 1.10.7 or higherstreamnative/private-cloud-console
image: v2.3.1 or higher
Enable OpenAPI
Create a super service account on the StreamNative Console Service Account page, and get the token from this super service account.
Set the Helm values
streamnative_console.configData.OPENAPI_ENABLED
totrue
and usehelm upgrade
to upgrade your Helm values.
streamnative_console:
configData:
OPENAPI_ENABLED: true
Use the
kubectl port-forward
orkubectl expose
commands to expose thestreamnative-console
pod, and the OpenAPI Swagger address will behttp://<Your External IP>:9527/swagger-ui/index.html
Access to the Swagger page and click
Authorize
to input the token you got from the step1. Then you will have the permission to use the StreamNative Console OpenAPI.