Remove responses category in swagger.json and update update_API_docs.md

This commit is contained in:
HaoyangLiu
2018-09-07 10:17:17 +08:00
parent b43a1a3808
commit 76469c082e
3 changed files with 27 additions and 62 deletions
+2 -2
View File
@@ -10,11 +10,11 @@ Due to the rest handlers and related data structures are distributed in many sub
```
2. Edit API docs
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.
2. Edit API docs within this [SwaggerHub](https://app.swaggerhub.com). Please refer to this [document](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
```
statik -src=client/lcd/swaggerui -dest=client/lcd
rm client/lcd/statik/statik.go && statik -src=client/lcd/swaggerui -dest=client/lcd
```
5. Compile new gaiacli
```