Refactor swagger.json for API docs

This commit is contained in:
HaoyangLiu 2018-09-03 18:32:13 +08:00
parent 1e97074165
commit ed935181e6
3 changed files with 498 additions and 496 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ Due to the rest handlers and related data structures are distributed in many sub
go get github.com/rakyll/statik
```
2. Edit API docs
1. Directly Edit API docs manually: `client/lcd/swaggerui/swagger.jso`
1. Directly Edit API docs manually: `client/lcd/swaggerui/swagger.json`
2. Edit API docs within this [SwaggerHub](https://app.swaggerhub.com). Please refer to this [link](https://app.swaggerhub.com/help/index) for how to use the about website to edit API docs.
3. Download `swagger.json` and replace the old `swagger.json` under `client/lcd/swaggerui` folds
4. Regenerate `client/lcd/statik/statik.go` file