{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "API", "description": "API documentation" }, "host": "HOST URL", "basePath": "proxy basepath", "schemes": [ "https" ], "produces": [ "application/json+fhir;charset=UTF-8", "application/xml+fhir;charset=UTF-8" ], "security": [{ "outhB2C": [ "scope1", "scope2" ] }], "paths": { "": { "get": { "description": "description", "operationId": "operationId", "security": [{ "outhB2C": [ "scope1" ] }], "produces": [ "application/json+fhir;charset=UTF-8", "application/xml+fhir;charset=UTF-8" ], "parameters": [{ "name": "param1", "in": "header", "required": false, "description": "description", "type": "string" }], "responses": { "200": { "description": "description" }, "default": { "description": "description" } } }, "post": { "operationId": "operationId", "security": [{ "outhB2C": [ "scope2" ] }], "description": "description", "produces": [ "application/json+fhir;charset=UTF-8", "application/xml+fhir;charset=UTF-8" ], "consumes": [ "application/json", "application/xml" ], "parameters": [{ "name": "param1", "in": "header", "required": false, "description": "description", "type": "string" }], "responses": { "201": { "description": "Successful creation" }, "default": { "description": "unexpected error" } } } }, "securityDefinitions": { "outhB2C": { "type": "oauth2", "description": "Security scheme for B2C flow using authorization code flow.", "scopes": { "scope1": "read the resources", "scope2": "write the resources" }, "flow": "Authorization_code", "authorizationUrl": "https://org-env.apigee.net/oauth/v2/authorize?scope=scope1&state=xyz", "tokenUrl": "https://org-env.apigee.net/oauth/v2/accesstoken" } }, "definitions": { "ResourceBody": { "type": "string" } } } }