项目作者: myENA

项目描述 :
Utilities for sorting go-restful api's for output in Swagger
高级语言: Go
项目地址: git://github.com/myENA/restful-api-sorter.git
创建时间: 2017-02-28T16:34:02Z
项目社区:https://github.com/myENA/restful-api-sorter

开源协议:Mozilla Public License 2.0

下载


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.