/lisman

Listening Manager Backend with Node JS

Primary LanguageJavaScript

Listening Manager

Documentation for Listening Manager Backend with Node JS.

API Documentation

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

Audios

Retrieve All Audio

GET /audios

With Specified ID

GET /audios/{id}

Store New Audio

POST /audios

Request Body :
- audio_name : string
- audio_file : file[audio/mpeg,audio/ogg]
- categories : [] with string -> categories with JSON.stringify() with integer value

Update Audio

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 Audio

DELETE /audios/{id}

Categories

Retrieve All Category

GET /categories

With Specified ID

GET /categories/{id}

Store New Category

POST /categories/{id}

Request Body :
- category_name

Update Category

PUT /categories/{id}

Request Body :
- category_name

Delete Category

DELETE /categories/{id}