Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-693

Arrange resources alphanumerically in Swagger-Ui

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.22.0
    • Labels:
    • Complexity:
      Low

      Description

      Currently the order of the tags in Swagger API documentation are determined by Swagger-UI itself.

      To sort them alphanumerically, we can pass `tagsSorter` config param (with value `alpha`) as an argument to SwaggerUIBundle

      SwaggerUIBundle({
          tagsSorter: 'alpha'
      })
      

      Refer to:
      swagger-ui/blob/master/docs/usage/configuration.md

      What to do:

      Simply add tagSorter param as an argument to SwaggerUIBundle in here.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomekdo3 Tomasz Domagała
              Reporter:
              gayanw Gayan Weerakutti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 minute
                  1m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m