swagger

command
v0.0.0-...-f0435bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

PersistenceSDK Swagger API Documentation

Pre-requirements
  • get the swag go binary or install from source
go get -u github.com/swaggo/swag/cmd/swag
Generate Swagger
go mod vendor
cd swagger
swag init  --parseDependency true --parseInternal true --parseVendor true

Note: about cmd will take much longer time depends on system.

  • generate /docs folder.
  • import /docs into main.go file to use swagger.
import _"github.com/AssetMantle/modules/swagger/docs"

To know more about swaggo use this

Start AssetMantle server in unsafe mode

assetNode start assetClient rest-server --chain-id test --unsafe-cors

# BaseRequest

GasPrices     sdk.DecCoins `json:"gas_prices" swaggerignore:"true"`

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL