Our great sponsors
-
insomnia
The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
# Config file for [Air](https://github.com/cosmtrek/air) in TOML format # Working directory # . or absolute path, please note that the directories following must be under root. root = "." tmp_dir = "tmp" [build] # Just plain old shell command. You could use `make` as well. cmd = "go build -gcflags='all=-N -l' -o ./tmp/main ." # Binary file yields from `cmd`. bin = "tmp/main" # Customize binary. full_bin = "dlv exec --accept-multiclient --log --headless --continue --listen :2345 --api-version 2 ./tmp/main" # Watch these filename extensions. include_ext = ["go", "tpl", "tmpl", "html"]
You can test it by just typing this URL in your browser but I would recommend to use a HTTP client like Insomnia, as it would be also required for the rest of this lesson.
You can use this swagger file to check and test the endpoints we just created for this app. To test the endpoints, I recommend you to download a HTTP client like Insomnia. Follow below the steps to test it: