This is another very cool API for Leo's Music Shop.
For now this API only sells keyboards and pianos.
This can help in Golang integrations with our clients.
First create a .env
file with the following:
SEGMENT_WRITE_KEY=your-source-write-key
Install all required packages:
go get .
Then run it:
go run .
Swagger is available at http://localhost:3001/swagger/index.html.
The Swagger docs are generated by Swag. If you need to update the endpoints, make sure you re-generate the Swagger docs accordingly.
You'll need to install Swag globally:
go install github.com/swaggo/swag/cmd/swag@latest
Then run:
swag init