Amazon API Gateway Importer: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
=Overview=
=Overview=


The tool uses [[Swagger_API_Tools#Swagger_Parser|swagger-parser]], [[Swagger_API_Tools#Swagger_Core|swagger-core]], swagger-models, etc.
The tool is a Java equivalent of AWS CLI import/update tools. The tool uses [[Swagger_API_Tools#Swagger_Parser|swagger-parser]], [[Swagger_API_Tools#Swagger_Core|swagger-core]], swagger-models, etc. It does *not* automatically enhance the specification with API Gateway extensions.


=Build and Install=
=Build and Install=

Revision as of 00:56, 23 February 2019

External

Internal

Overview

The tool is a Java equivalent of AWS CLI import/update tools. The tool uses swagger-parser, swagger-core, swagger-models, etc. It does *not* automatically enhance the specification with API Gateway extensions.

Build and Install

When is this necessary? Build or operations? This tool requires AWS credentials to be configured in at least one of the locations specified by the default credential provider chain.

cd .../runtime
git clone git@github.com:amazon-archives/aws-apigateway-importer.git
cd aws-apigateway-importer
mvn assembly:assembly

This creates the binary that parses the Swagger file, injects AWS API Gateway extensions to OpenAPI and creates or updates an API based on the processed specification.