Acest api poate sa stocheze albume si artisti. Fiecare album are 1 sau mai multi artisti care l-au compus. Pentru a face operatii trebuie sa iti creezi un cont si sa fii autentificat.
POST: http://127.0.0.1:1080/auth/login
Body: {
"username": "nume",
"password": "parola"
}
POST: http://127.0.0.1:1080/auth/register
Body: {
"username": "nume",
"password": "parola",
}
POST: http://127.0.0.1:1080/artists
Body: {
"first_name": "IonIon",
"last_name": "IonLast",
"birth_date": 907233000
}
Creeaza un artist.
GET: http://127.0.0.1:1080/artists
Returneaza toti artistii.
GET: http://127.0.0.1:1080/artists/:id
Returneaza artistul cu id-ul respectiv.
POST: http://127.0.0.1:1080/albums
Body: {
"name": "Album namedaaddaa",
"release_date": 843784737,
"artists": [
"5ff7402fadcdbf1122226b6b"
]
}
Adauga un album.
GET: http://127.0.0.1:1080/albums
Returneaza toate albumele.
GET: http://127.0.0.1:1080/albums/:id
Returneaza albumul cu id-ul respectiv.