[英]AWS API Gateway - Removed lambda function references when update the documentation
I am trying to update my documentation in AWS API Gateway using a swagger import. 我正在尝试使用大胆的导入方式更新AWS API Gateway中的文档。
I am using the option Merge however every time i do it, it removes all the references from the endpoint to the lambda functions that I have already set. 我正在使用“ 合并 ”选项,但是每次执行此操作时,它都会从端点删除所有已设置的lambda函数的引用。
So I have to go through a set them again. 因此,我必须再次进行设置。
So I don't have to go back through all the endpoints and reset the Lambda functions before deploying it. 因此,在部署它之前,我不必遍历所有端点并重置Lambda函数。
Is there a way that I can make sure the Lambda functions stay set? 有什么方法可以确保Lambda函数保持设置状态吗?
There is no way for a swagger import to keep the references. 大张旗鼓的导入无法保留引用。
A better way to do it would be to just use API Gateway to create your API. 更好的方法是仅使用API Gateway创建您的API。
And then export the swagger when you want to document your API. 然后,当您要记录您的API时,导出该表格。
This way you won't have that issue. 这样,您就不会遇到这个问题。
I hope this helps you. 我希望这可以帮助你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.