Red Hat 3scale-toolbox import fails for OpenAPI Spec

Solution Verified - Updated -

Issue

  • When importing a backend with the 3scale API Management toolbox the following error shows up:

    sh-4.4$ 3scale import openapi -d <DESTINATION> --backend https://petstore3.swagger.io/api/v3/openapi.json -t test-api-2                                                                              {
    "code": "E_INVALID_URL",
    "message": "invalid url: /api/v3",
    "class": "ThreeScaleToolbox::InvalidUrlError"
    }
    
  • How can the OpenAPI Spec (OAS) be imported as backend without modifying the server URL to contain the complete URL?

Environment

  • Red Hat 3scale API Management
    • 2.11.0 On-Premise
  • Red Hat 3scale-toolbox
    • 0.20.x
  • Open API Specification (OAS)
    • 2.x
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content