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

[QE] [API Docs] [Medium] Add a dropdown to select server

XMLWordPrintable

      OpenAPI spec allows for multiple server information. We currently use this server information to show the base urls information. We also choose one of these base urls in our code samples.
      Instead of randomly choosing one base url for our code samples, we should let the user decide which base url they want displayed by the use of a dropdown.

      We have a few options that we need to decide on:

      • Replace the base url section at the top of the page with a dropdown. Once the user selects one base url from the dropdown, the urls in the code samples will be updated to use the selected base url.
      • Put a base url selection dropdown under each code sample component. Once the user selects one base url from the dropdown, update it everywhere.
      • Add a standalone base url selection dropdown at the top of the page. Update the base url everywhere after selection.

      Some examples:

      Swagger:

      Stoplight:

              Unassigned Unassigned
              tefaz-insights Tahmid Efaz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: