在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:chuyik/koa-joi-router-docs开源软件地址:https://github.com/chuyik/koa-joi-router-docs开源编程语言:JavaScript 100.0%开源软件介绍:Koa-Joi-Router Docs GeneratorThis project is based on paul42/joi-router-swagger-docs. A node module for generating Swagger 2.0 JSON definitions from existing koa-joi-router routes. Aiming to be a replacement for koa-resourcer-docs which can take advantage of various Swagger 2.0 tools for generating client libraries, test suites, AWS Lambda/serverless, etc. PreviewInstall# use npm
npm install koa-joi-router-docs --save
# use yarn
yarn add koa-joi-router-docs ExampleVisit example/ folder to see the full example. APInew SwaggerAPI()Creates a new SwaggerAPI instance. swaggerAPI.addJoiRouter(router, options)Add a joi-router instance to the API. The router should already have all its
routes set up before calling this method (which pulls the route definitions
from the router's Options:
swaggerAPI.generateSpec(baseSpec, options)Create a Swagger specification for this API. A base specification should be
provided with an Options:
DonationIf you find this project useful, you can buy us a cup of coffee: AcknowledgementsWe are grateful to the authors of existing related projects for their ideas and collaboration: Contributors
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论