Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anandlalvb/swaggertoapigateway

A Java utility project to covert your Swagger to API Gateway JSON
https://github.com/anandlalvb/swaggertoapigateway

Last synced: about 2 months ago
JSON representation

A Java utility project to covert your Swagger to API Gateway JSON

Awesome Lists containing this project

README

        

# SwaggerToAPIGateway
A Java utility project to covert your Swagger file to AWS API Gateway JSON

**Steps to deploy to API Gateway**
1. Checkout the utility project, SwaggerToAPIGateway
2. There are two configurations in the project, please select the environment and module you want to import to API Gateway
- Env env = Env.QA;
- Module moduleSelected = Module.A;
3. Save latest Swagger file to your utility project
- For example QA/A, Save with file name input/QA_A_document.json
4. Run the application (App.java) and you can see a new files created in your utility folder
- output/QA_A_document_gateway.json
5. Make sure to commit the latest version of JSON files in your utility proj input folder
Import the json file to your AWS API Gateway

**Steps to import JSON file to API Gateway**

1. Select API Gateway service




2. API Selection - Module Customer



3. Actions - Import API



4. Paster Swagger json


5. Import with Overwrite



6. Actions - Deploy API



7. Stage and description



8. Select Stage



9. Add deployment description



10. Navigate to Stages page



11. Verify the Stage variable is correct