d5e608feeb54f2482a74c3fb5d926c340c39a126
music-index
Music collection software for indexing bought (physical) albums. Build with Golang and Postgres
Authentication
JWT authentication is enabled for protected endpoints.
Set these environment variables for the API:
JWT_SECRET(required)JWT_ISSUER(optional, defaults tomusic-index-api)JWT_TTL_MINUTES(optional, defaults to60)
Get a token via POST /api/v1/users/login and include it as:
Authorization: Bearer <token>
Swagger
The API documentation is available at /api/v1/swagger/index.html after running the application. It provides details about the available endpoints, request/response formats, and other relevant information for developers to interact with the API effectively.
Regenerate the docs with the following command in the /api/ folder:
go run github.com/swaggo/swag/cmd/swag@v1.16.4 init -g main.go -o docs
Description
Music collection software for indexing bought (physical) albums. Build with Golang and Postgres
Languages
Go
95.9%
Dockerfile
4.1%