{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "API C for microservices demo", "description": "API C is called by API A", "contact": { "email": "stevehu@gmail.com" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "host": "c.networknt.com", "schemes": [ "http" ], "basePath": "/v1", "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/data": { "get": { "description": "Return an array of strings collected from down stream APIs", "operationId": "listData", "responses": { "200": { "description": "Successful response", "schema": { "title": "ArrayOfStrings", "type": "array", "items": { "type": "string" } }, "examples": { "application/json": [ "Message 1", "Message 2" ] } } }, "security": [ { "c_auth": [ "api_c.w", "api_c.r" ] } ] } } }, "securityDefinitions": { "c_auth": { "type": "oauth2", "authorizationUrl": "http://localhost:8080/oauth2/code", "flow": "implicit", "scopes": { "api_c.w": "write access", "api_c.r": "read access" } } } }