G
G
Georgy Pugachev2019-12-23 18:40:02
API
Georgy Pugachev, 2019-12-23 18:40:02

How to attach swagger-ui to a project?

I have a rest server on Go (VS Code, Windows), can you post a step-by-step algorithm on how to attach swagger-ui to it?
I searched the Internet, but there are examples either for other languages, or some self-written frameworks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melentyev, 2019-12-23
@asmelentyev

You can use https://github.com/swaggo/swag, in the README there is an excellent example just on the main.go file, where all the routes are described, which are then automatically documented in the swagger format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question