Why Local Editor:
- swagger foreign websites, do not know why, this website is the tool to block the Chinese firewall (we do not dare to ask why). Cause I can not be edited online via swagger.
Local edit swagger and integrated into aws way
- To aws api gateway >> corresponding API >>> stages >> Export >> Export swagger documents.
- To https://github.com/swagger-api/swagger-editor from swagger-editor running locally (requires Docker)
- Browse HTTP: // localhost / >>> >>> select File >> Import File swagger import and export documents from aws api gateway
- At http: // localhost / After editing, save >> File >> save as YAML
- To aws api gateway >> corresponding API> on Actions >> Import API >> selection step to save the file. If no error can be deployed to test.
Reproduced in: https: //www.jianshu.com/p/10b0801d0321