962 B
962 B
How to update API docs
Due to the rest handlers and related data structures are distributed in many sub-folds, currently there is no tool which can automatically extract all APIs information and generate API docs. So here we have to write APIs' docs manually.
Steps
- Install the command line tool first.
go get github.com/rakyll/statik
- Edit API docs
- Directly Edit API docs manually:
client/lcd/swaggerui/swagger.json
- Edit API docs within this SwaggerHub. Please refer to this document for how to use the about website to edit API docs.
- Directly Edit API docs manually:
- Download
swagger.json
and replace the oldswagger.json
underclient/lcd/swaggerui
folds - Regenerate
client/lcd/statik/statik.go
filerm client/lcd/statik/statik.go && statik -src=client/lcd/swaggerui -dest=client/lcd
- Compile new gaiacli
make install