Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-2607

the "3scale import openapi" command has to set the public staging/prod URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Toolbox
    • None

      When importing an OpenAPI with:

      $ 3scale import openapi -d nmasse-redhat -t test https://raw.githubusercontent.com/nmasse-itix/api-lifecycle/master/beer-catalog-demo/api-contracts/beer-catalog-api-swagger.json
      Created service id: 2555417802150, name: Beer Catalog API
      destroying all mapping rules
      Created GET /beer/{name}$ endpoint
      Created GET /beer/findByStatus/{status}$ endpoint
      Created GET /beer$ endpoint
      Service proxy updated
      

      The service is created using the SaaS APIcast but there is no mean to specify a custom public staging/prod URL so that I could use my own APIcast instances.

      Suggestion

      The "3scale import openapi" command has two more optional parameters :

      --staging-public-base-url=http://my-apicast-instance.mydomain.com:8080
      --production-public-base-url=https://api.example.com
      

      If one of those parameters (or both) are set, the service is configured "Self-managed APIcast" (3scale hosted) or "APIcast" (on-premises).
      The two parameters are set on the proxy settings.

            Unassigned Unassigned
            rhn-support-nmasse Nicolas Masse
            Eguzki Astiz Lezaun Eguzki Astiz Lezaun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: