首页 > 解决方案 > 从无服务器 yml 创建 swagger ui

问题描述

我对此很陌生。我在 AWS 上使用无服务器(框架 2.41.2)制作了一个 REST API。

我现在想学习如何创建一个 Swagger UI 来记录它。我阅读了文档插件已弃用,不再提供支持。

因此,我使用 AWS APi Gateway 手动编写文档,我遵循此处的指南:https ://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api-quick-start-with-console .html 文档后,我将其导出为 Swagger UI 格式的 json 文件。此选项由 API Gateway 控制台提供。请参阅此处的指南:https ://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-documenting-api-with-console.html

我想知道是否还有一种将文档直接写入Yml文件的自动方法

标签: amazon-web-servicesapiswaggerserverless

解决方案


推荐阅读