gin-swagger icon indicating copy to clipboard operation
gin-swagger copied to clipboard

Document Group

Open magua33 opened this issue 4 years ago • 3 comments

How to Generate different pages according to groups?

magua33 avatar Jul 21 '20 06:07 magua33

Hello @easonlin404 Relevant question. How does it separate endpoints by group? When I've generated spec there is only one group (is named "default") in the result. Screenshot 2020-08-13 at 11 58 41 Thank you

teploff avatar Aug 13 '20 09:08 teploff

Hi. You can used '@Tags'. example - https://github.com/swaggo/swag/blob/3ce6eb2a1494d9a5267eb23d2b5a1aaa429ef6da/example/celler/controller/examples.go#L15

AntonDzyk avatar Aug 13 '20 10:08 AntonDzyk

Hi. You can used '@tags'. example - https://github.com/swaggo/swag/blob/3ce6eb2a1494d9a5267eb23d2b5a1aaa429ef6da/example/celler/controller/examples.go#L15

Thanks!

teploff avatar Aug 13 '20 15:08 teploff