Build Metal Bands Rest Api in django

Ayman Lar
May 9, 2022

Metal Bands Api

an api for metalheads and computer geeks

API Reference

Api Root

HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"bands": "http://127.0.0.1:8000/bands/"
}

Get all items

GET /bands

Get all bands names and logos

HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
[
{
"id": 5,
"name": "Black Sabbath",
"logo": "http://127.0.0.1:8000/media/logos/BlackSabbath.png"
},
{
"id": 6,
"name": "Death",
"logo": "http://127.0.0.1:8000/media/logos/Death.png"
},
{
"id": 7,
"name": "Metallica",
"logo": "http://127.0.0.1:8000/media/logos/Metallica.png"
},
{
"id": 10,
"name": "Dio",
"logo": "http://127.0.0.1:8000/media/logos/Dio.png"
},
{
"id": 11,
"name": "Judas Priest",
"logo": "http://127.0.0.1:8000/media/logos/Judas_Priest.png"
},

Authors

check my website https://www.aymanlar.me/

--

--

Ayman Lar

I work on a lot of random projects because the web needs some new shit.