Swagger Sails JS

后端 未结 5 808
执念已碎
执念已碎 2020-12-08 11:04

Any idea of how to integrate swagger, swagger-ui with a sails js project?

Where can i found information about it, or about another

5条回答
  •  鱼传尺愫
    2020-12-08 11:58

    In terms of generating the documentation automatically, you can check out this library as I think it better solves the problem and simply generates the swagger.json file automatically from your controllers and routes.

    npm install sails-hook-swagger-generator --save
    

    then simply sails lift and check the swagger folder, which you must have created before running sails lift

    Updates

    It now has support OAS 3.0 and also better documentation for actions and action2s

    for more about the configuration, you can view the repo here

提交回复
热议问题