Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bustle/api-gateway-copy-method


https://github.com/bustle/api-gateway-copy-method

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

AWS API Gateway does not have a feature that allows you to copy settings from one method to another. This cli fixes that. Super useful when you have many similar methods like OPTIONS requests for CORS.

### Install

`npm install -g api-gateway-copy-method`

###Usage

`api-gateway-copy-method `

Example: `api-gateway-copy-method "Blog API" /posts/{id} GET /blogPosts/{id} GET`

### Important Notes:

- destPath must already exist in the UI
- destMethod must not exist. An error will be thrown if it does.
- cacheNamespace is NOT copied between methods. First off, this is not settable in the current AWS web UI. Second it seems unlikely you would want to share cache namespaces between methods.