Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.31 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.31 KB

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.