• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Proper swagger url

    Mango Automation general Discussion
    3
    6
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BobDay
      last edited by

      Could you post the proper swagger api docs url for Mango 3.5? "swagger.enabled=true" is in my mango/overrides/properties/env.properties file. Thank you.

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        This is the URL I see in the latest env.properties file and it seems to work for me. /swagger-ui.html

        B 1 Reply Last reply Reply Quote 0
        • B
          BobDay @JoelHaggar
          last edited by BobDay

          @joelhaggar Thanks, Joel. Pilot error in overrides file - interesting that there was an "enabled = false" prior to the "enabled = true". Thanks for the bother.

          1 Reply Last reply Reply Quote 0
          • K
            khuang
            last edited by

            @JoelHaggar That URL also works for me but I get an error saying:
            "Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:"
            My full url is: http://localhost:8080/swagger-ui.html
            Do you know why I might be getting this error?

            B 1 Reply Last reply Reply Quote 0
            • B
              BobDay @khuang
              last edited by

              @khuang That was the error I was receiving. Might try making sure there's no "swagger-enabled = false" anywhere in your overrides file (or you're missing the "enabled=true" flavor, of course.

              1 Reply Last reply Reply Quote 0
              • K
                khuang
                last edited by

                @bullitbd Thanks, that helped me find the problem. I forgot to restart Mango after the change.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post