{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "http://ac.networknt.com/v1"
    }
  ],
  "info": {
    "version": "1.0.0",
    "title": "API AC for aggregate microservices pattern",
    "description": "API AC is called by API AA along with another two APIs",
    "contact": {
      "email": "stevehu@gmail.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "paths": {
    "/data": {
      "get": {
        "description": "Return an array of strings collected from down stream APIs",
        "operationId": "listData",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ArrayOfStrings",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "examples": {
                  "response": {
                    "value": [
                      "Message 1",
                      "Message 2"
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ac_auth": [
              "ac.w",
              "ac.r"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ac_auth": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "authorizationUrl": "http://localhost:8080/oauth2/code",
            "scopes": {
              "ac.w": "write access",
              "ac.r": "read access"
            }
          }
        }
      }
    }
  }
}