repositorypackage
0.0.0-20171101155822-a22bc1ad6299
Repository: https://github.com/myena/restful-api-sorter.git
Documentation: pkg.go.dev
# README
restful-api-sorter
Utilities for sorting go-restful api's for output in Swagger
Targeted Versions
restful-api-sorter | compatibility |
---|---|
v1.2 | go-restful v1.2 |
swagger12 | go-restful-swagger12 1.* |
Description
If you utilize go-restful or go-restful-swagger12's ability to generate Swagger docs, you've undoutedly noticed that the order is not pre-defined and must be sorted client-side. This can be problematic if you have a particularly large API list.
To that end, this package endeavors to sort the api's in go, which is just better.
Available Sort Methods
Usage
Each of the functions present in this package are implementations of
PostBuildDeclarationMapFunc, and is used
by setting the PostBuildHandler
property on the
Config struct.