Generating Swagger spec with golang comments

前端 未结 2 1643
野趣味
野趣味 2021-01-12 00:14

I am trying to create documentation for my REST API written in golang using Swagger. I have been following this guide: https://goswagger.io/generate/spec.html to do so and h

2条回答
  •  轮回少年
    2021-01-12 01:05

    Yes, you can create a YAML file. Following an example.

    swagger generate spec -m -o ../../api/swagger.yaml
    

    Also, feel free to check the Blog Post.

提交回复
热议问题