wormhole-explorer/api
gipsh b490be0f5d
fix api doc basepath (#423)
fix api doc basepath

Co-authored-by: Hernan Gips <hernangips@OnoSendai.local>
2023-06-18 13:17:22 -03:00
..
docs fix api doc basepath (#423) 2023-06-18 13:17:22 -03:00
handlers Issue [#446] remove duplicate data transaction history graph (#413) 2023-06-15 13:01:57 -03:00
internal Vanilla rate limiter (#414) 2023-06-15 23:22:47 -03:00
middleware Add endpoint `GET /api/v1/transactions` (#388) 2023-06-12 11:43:48 -03:00
response
routes Add support for Aptos in the `tx-tracker` service (#421) 2023-06-16 17:47:28 -03:00
rpc
types Fix txHash encoding by chain (#410) 2023-06-15 09:57:39 -03:00
.gitignore
Dockerfile
Makefile
README.md
go.mod Vanilla rate limiter (#414) 2023-06-15 23:22:47 -03:00
go.sum Vanilla rate limiter (#414) 2023-06-15 23:22:47 -03:00
main.go fix api doc basepath (#423) 2023-06-18 13:17:22 -03:00

README.md

API

How to build

make build

Config

You will need to set some env variables with the prefix WORMSCAN

  • WORMSCAN_DB_MONGO
  • WORMSCAN_DB_NAME
  • WORMSCAN_PORT

for example:

WORMSCAN_DB_URL=mongodb://localhost:27017/wormhole WORMSCAN_PORT=5555 ./api

API Documentation

Documentation is automagically generated via swaggo using annotations on code and placed inside doc/ folder.

To install swag tool run this

go install github.com/swaggo/swag/cmd/swag@latest

To generate or update the doc run:

make doc