-
Copy the .env.example file to .env
-
Run docker compose -f docker-compose.yml up
This will create a service that you can query on port (default 80)
- add artist: /artist/add
- add track: /track/add
- daily artist: /artist/daily
- edit artist name: /artist/edit?artistId=<>&newName=<>
- get all tracks: /tracks?artistId=
Expects an artist as a JSON input - e.g.
{
"name": "<artistName>",
"aliases": ["<alias1>", "<alias2>"]
}
The artist must already exist. Expects JSON in the form
{
"title": "<track_title>",
"artistId": "<artist_id>"
}
where artist id is the ID given when calling add artist