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

Developer Portal ActiveDocs injecting data into returned API call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 2.13.7
    • System
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      The Developer Portal documentation page Swagger interface is injecting `servers` variable to the API call answer data.

      Example:

      Used OAS 3.0 document:

       

      {
        "openapi": "3.0.0",
        "info": {
          "title": "OAS bug test spec",
          "version": "1.0.0",
          "description": "OAS 3.0 spec to test 3scale SwaggerUI server section bug."
        },
        "paths": {
          "/test": {
            "get": {
              "description": "Request to endpoint that will return only 'hello': 'world!'. Check for the 'servers' added section by the browser.",
              "responses": {
                "200": {
                  "description": "operacion exitosa"
                },
                "400": {
                  "description": "Bad Request"
                },
                "404": {
                  "description": "Not Found"
                },
                "500": {
                  "description": "Internal Server Error"
                }
              }
            }
          }
        },
        "components": {
          "securitySchemes": {
            "api-key": {
              "type": "apiKey",
              "description": "Debe ingresar la api key asignada, si no la tiene, solicitela mediante mesa de ayuda, https://sipub.api.coordinador.cl/{backend}/{funcion}?user_key={APIKey}",
              "name": "user_key",
              "in": "query"
            }
          }
        },
        "security": [
          {
            "api-key": []
          }
        ]
      }

       

              Unassigned Unassigned
              rhn-support-eazevedo Ernani Azevedo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: