Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-35999

Add support for a RBAC v2 API spec endpoint

XMLWordPrintable

    • Product / Portfolio Work
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None
    • 3

      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

              Unassigned Unassigned
              kwalsh@redhat.com Keith Walsh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: