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

Add an access token Authorization header for all the API calls in the code samples

XMLWordPrintable

    • Platform Pipeline Sprint 75, Platform Pipeline Sprint 76, Platform Pipeline Sprint 77

      This ticket needs to be discussed with the manager and PM to check if all the APIs we are hosting requires this Authorization header

      • Add an Authorization header in every code samples with "Bearer <access_token>" as its value. This is how a typical header in the code samples might look like:
        headers = {"Authorization":"Bearer <access_token>", "Content-Type": "application/json"} 
      • If there is any mention of the x-rh-identity header in the OpenAPI spec, it must not be rendered into the code samples, as well as the Authorization info at the top of the page. The x-rh-identity header is used in local development and inter-service communication, our customers do not need to work with this header when making API calls.

              comitche@redhat.com Cody Mitchell
              tefaz-insights Tahmid Efaz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: