Diemo-zz / ice-bucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build

  • 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)

Endpoints

  • add artist: /artist/add
  • add track: /track/add
  • daily artist: /artist/daily
  • edit artist name: /artist/edit?artistId=<>&newName=<>
  • get all tracks: /tracks?artistId=

Add artist

Expects an artist as a JSON input - e.g.

{
  "name": "<artistName>",
  "aliases": ["<alias1>", "<alias2>"]
}

Add track

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

About


Languages

Language:Java 98.1%Language:Dockerfile 1.9%