vue.js - 来自 swagger 规范的 vue.js 客户端

标签 vue.js swagger

我有 swagger/openapi 规范。是否存在生成 javascript 客户端然后在 vue.js 组件中使用它的任何解决方案?

谷歌搜索后我发现了这个:https://github.com/swagger-api/swagger-codegen但我想为 vue.js/webpack 找到更多“原生”解决方案

最佳答案

对这个问题的回答比较晚,但我认为有人可能仍然会偶然发现它以寻找解决方案。并且不再维护之前评论中的建议。

This project is no longer actively maintained by its creator. Please let us know if you would like to become a maintainer. At the time we wrote this package, the swagger didn't have generators for JavaScript nor TypeScript. Now there are great alternatives of this package available.



https://github.com/swagger-api/swagger-codegen

( https://github.com/swagger-api/swagger-codegen#user-content-where-is-javascript )

https://github.com/swagger-api/swagger-js

我希望这对任何来到这里寻找的人都有帮助。

关于vue.js - 来自 swagger 规范的 vue.js 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51437540/

相关文章:

typescript - 将 Prop 传递到设置 : Property 'user' does not exist on type 时,VueJS 3 Composition API 和 TypeScript 类型问题

javascript - 如何告诉vuefire的firestore在 "created"钩子(Hook)之后执行?

javascript - 如何在 Vue 中滚动时更改 css

.net-core - .NET Core 2.0 Web API - 如何在 Swagger 中添加自定义 header 参数

swagger - 包含查询字符串的Swagger API

vue.js - 使用 Vue 在 v-for 循环中将可迭代元素作为函数参数传递

vue.js - 将自定义错误添加到vee验证器(ErrorBag)

c# - 如何在 ASP.NET Core 3.1 上运行的启用 OData 的 Web API 中添加 Swagger

spring - 在编译/构建时从 Spring 代码生成 OpenAPI V3 规范

.net-core - Swashbuckle 如何将 OneOf 声明添加到 OpenAPI 3