amazon-web-services - 从无服务器 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文件的自动方法
解决方案
推荐阅读
- scala - 使用 Akka HTTP 文件上传的 Tapir - 在收到请求结束之前发送 2xx 的“早期”响应
- python - 将带有 scapy 的 RADIUS 数据包发送到 NPS
- c# - 如何在 EF Core 5 中为自定义 SQL 配置导航属性
- python - 如何根据另一个字典中的值更新字典值,该字典具有相同的键,其中值是列表?
- html - CSS:overflow-y的组合:可见和overflow-x:隐藏在父元素上被忽略;下拉菜单导致不需要的滚动条
- c# - 如何正确地将 NLog 添加到 .NET 5 控制台应用程序?
- python - 在 Python 中使用缩进时出现问题
- c++ - 如何遍历 C++ 中的每一位类型
- azure - Azure 自定义语音模型:使用现有模型作为基础模型
- intellij-idea - IntelliJ Ultimate 在设置 SQL 方言时是否支持使用通配符?