Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-38

Allow swagger base path to be configured relative to web application context path

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Neutral
    • 1.0
    • None
    • None
    • None
    • 5.2-rc1

    Description

      If we were to configure instead '/.rest' on the module and then check if it starts with http:// or https:// and otherwise change it by prepending it with the context path we could make the module work out of the box without configuration.

      The tools app would instead open '/.resources/swagger-ui/index.html?apiBasepath=/magnoliaAuthor/.rest' which works.

      The result of calling 'http://localhost:8080/magnoliaAuthor/.rest/api-docs/properties/v1' however changes the 'basePath' property from being absolute with protocol and host to being absolute without protocol and host. I.e. /magnoliaAuthor/.rest as opposed to http://localhost:8080/magnoliaAuthor/.rest. Which might not work with other tools without reconfiguring.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD