-
Story
-
Resolution: Done
-
Normal
-
None
We should surface the v2 api spec via /rbac/v2/openapi.json to help experience engineering in consuming, similar to all other API specs on the console. We'll need to consider that it's currently .yml
We need the v2 api document in the /docs/api, we need to add it to:
https://github.com/RedHatInsights/chrome-service-backend/blob/main/static/stable/prod/main.yml
But also expose the openapi.json file to the static path. I tried this is working:
Add the path to STATICFILES_DIRS under settings: os.path.join(BASE_DIR, "..", "docs/source/specs/v2")
rename the openapi.json under docs/source/specs/v2 to openapiv2.json.
Then I can visit it by:
curl localhost:8000/api/rbac/static/openapiv2.json