Aws apigateway: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
=import-rest-api= | =import-rest-api= | ||
Creates a new API from an external API definition file. | Creates a new API from an external API definition file. The API definition file should be in OpenAPI 2.0 format, optionally carrying Amazon API Gateway extensions. The new API's name will be given by the OpenAPI 2.0 [[OpenAPI_Specification#title|info.title]] element. | ||
aws apigateway import-rest-api --body 'file:///path/to/API_Swagger_template.json' | aws apigateway import-rest-api --body 'file:///path/to/API_Swagger_template.json' | ||
aws apigateway import-rest-api --body 'file:///Users/ovidiu/playground/api-gateway-playground/themyscira/build/swagger.json' | aws apigateway import-rest-api --body 'file:///Users/ovidiu/playground/api-gateway-playground/themyscira/build/swagger.json' |
Revision as of 23:10, 28 February 2019
Internal
import-rest-api
Creates a new API from an external API definition file. The API definition file should be in OpenAPI 2.0 format, optionally carrying Amazon API Gateway extensions. The new API's name will be given by the OpenAPI 2.0 info.title element.
aws apigateway import-rest-api --body 'file:///path/to/API_Swagger_template.json'
aws apigateway import-rest-api --body 'file:///Users/ovidiu/playground/api-gateway-playground/themyscira/build/swagger.json'