Documentation for Listening Manager Backend with Node JS.
HTTP | URI | Description |
---|---|---|
GET | /audios | Retrieve all audio list |
GET | /audios/{id} | Retrieve audio specified by id |
POST | /audios | Store new audio |
PUT | /audios/{id} | Update audio specified by id |
DELETE | /audios/{id} | Delete audio specified by id |
GET | /categories | Retrieve all category list |
GET | /categories/{id} | Retrieve category specified by id |
POST | /categories | Store new category |
PUT | /categories/{id} | Update category specified by id |
DELETE | /categories/{id} | Delete category specified by id |
GET /audios
GET /audios/{id}
POST /audios
Request Body :
- audio_name : string
- audio_file : file[audio/mpeg,audio/ogg]
- categories : [] with string -> categories with JSON.stringify() with integer value
PUT /audios/{id}
Request Body :
- audio_name : string
- audio_file : file[audio/mpeg,audio/ogg]
- categories : [] with string -> categories with JSON.stringify() with integer value
DELETE /audios/{id}
GET /categories
GET /categories/{id}
POST /categories/{id}
Request Body :
- category_name
PUT /categories/{id}
Request Body :
- category_name
DELETE /categories/{id}