| .. | ||
| statik | ||
| swaggerui | ||
| lcd_test.go | ||
| README.md | ||
| root.go | ||
| test_helpers.go | ||
| version.go | ||
| wire.go | ||
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.jso - Edit API docs within this SwaggerHub. Please refer to this link for how to use the about website to edit API docs.
- Directly Edit API docs manually:
- Download
swagger.jsonand replace the oldswagger.jsonunderclient/lcd/swaggeruifolds - Regenerate
client/lcd/statik/statik.gofilestatik -src=client/lcd/swaggerui -dest=client/lcd - Compile new gaiacli
make install