/Swagger-ApiGateway-Configuration

Application with examples of automatic configuration of Api Gateway, from the swagger generated by the api.

Primary LanguageC#MIT LicenseMIT

Swagger-ApiGateway-Configuration

Application with examples of automatic configuration of Api Gateway, from the swagger generated by the api.

About

project used as an example for presentation at the Dextra .NET guild.

Introduction

Presentation on API Gateways and how to perform automated deploys from the swagger file generated by the .NET Core application.

Vendors Configuration

The idea of the presentation is to show tags and properties that some suppliers ask to perform the automatic deployment and configuration of the Gateway.

Examples:

  • AWS
"x-amazon-apigateway-integration": {
          "responses": {
            "default": {
              "statusCode": "200",
              "responseParameters": {
                "method.response.header.Content-Type": "'text/html'"
              },
              "responseTemplates": {
                "text/html": "Text"
              }
            }
          },
          "passthroughBehavior": "when_no_match",
          "requestTemplates": {
            "application/json": "{\"statusCode\": 200}"
          },
          "type": "mock"
        }
  • WSO2
"securitySchemes": {
      "default": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://test.com/",
            "scopes": {}
          }
        }
      }
    }
  • Apigee (Not applicable)
  • Azure (Not applicable)

References:

swagger.io

Open Api Spec

RedHat Docs