Utilities for sorting go-restful api's for output in Swagger
restful-api-sorter | compatibility |
---|---|
v1.2 | go-restful v1.2 |
swagger12 | go-restful-swagger12 1.* |
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.
Each of the functions present in this package are implementations of
PostBuildDeclarationMapFunc, and is used
by setting the PostBuildHandler
property on the
Config struct.