Music - GuiguiWeb/IIM_A2_GIT GitHub Wiki

Music

Get the metadata for a music using the music id.

ENDPOINT DEFINITION

GET http://localhost/api/music.php?id=MUSICID

RESPONSE HEADER
Cache-Control: no-store, no-cache, must-revalidate
Connection: close
Content-Type: application/json
Date: Fri, 20 Apr 2018 11:39:35 +0000
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Host: localhost
Pragma: no-cache
X-Powered-By: PHP/7.2.4
RESPONSE BODY
{
  "id": "1",
  "user_id": "1",
  "title": "UN*DEUX - Shopping Day",
  "file": "musics/d0dbde0148d66ddf8ae815e014e2a668.1.mp3",
  "created_at": "2015-10-01 15:35:05"
}