R
R
Roman Chugunov2018-12-30 20:50:23
go
Roman Chugunov, 2018-12-30 20:50:23

Is there an analogue of the hapi-swagger plugin for Go?

Hello.
Recently I started to "feel" Go, write services.
But even I don’t really understand how to attach swagger for my own ...
Before that, I used Node along with Hapi hapi-swagger.
There, you simply add note, description and tags to each route in the options code.
And the dock by api is generated by the hapi-swagger plugin itself.
Is it possible to do this in Go?
In short, in order not to manually describe and edit the swagger.yaml file each time, you need a plugin that would itself generate the dock via api and provide ui.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2018-12-30
@ghostiam

https://github.com/go-swagger/go-swagger
Generates documentation from comments in the code, also automatically generates json responses by structure name.
Generator Documentation: https://goswagger.io/use/spec.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question