Skip to content

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

Notifications You must be signed in to change notification settings

anandlalvb/SwaggerToAPIGateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  1. Import with Overwrite
  1. Actions - Deploy API
  1. Stage and description
  1. Select Stage
  1. Add deployment description
  1. Navigate to Stages page
  1. Verify the Stage variable is correct

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages