Skip to content

Tyil/likert-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoodIO

MoodIO is a (set of) application(s) to get an insight in the mental and possibly phisical state of people. Primarily aimed at children to assist their doctor in evaluating their well being.

Installation

TODO

Environment

The application knows three environments, testing, development and production. Depending on the environment, some aspects may behave differently. You can set the environment by setting the NODE_ENV variable in the shell starting the application.

In addition, the database configuration can be created using environment variables as well. For this, you can use DB_USERNAME, DB_PASSWORD, DB_DATABASE, DB_HOST and DB_DIALECT. Keep in mind that the config generation only runs if the config/database.json does not exist yet.

Usage

Auth

Request Body Type
username String
password String
Request Body Type
Request Body Type
Request Body Type
username String
password String

Genres

GET /

Request Body Type

POST /

Request Body Type
genreName String

DELETE /

Request Body Type
genreName String
Request Body Type
genreName String

DELETE /dislike

Request Body Type
genreName String

POST /like

Request Body Type
genreName String

DELETE /like

Request Body Type
genreName String

Moods

GET /

Request Body Type

POST /

Request Body Type
mood String

PUT /

Request Body Type
newMood String

DELETE /

Request Body Type
mood String
Request Body Type

GET /my

Request the current user's current mood.

Request Body Type

POST /my

Changes the mood and puts the mood into history

Request Body Type
moodId Integer

First ten moods in history

Request Body Type

The x amount

Request Body Type

Users

GET /

Request Body Type

PUT /

Request Body Type
username String
password String
Request Body Type
Request Body Type
username String
password String

Likerts

GET /:id

Request Body Type
Request Body Type
Request Body Type

POST /

Request Body Type
name String
description String
scaleItems String (Comma Seperated Values)

POST /:id

Request Body Type
songId INT
moodId INT
scaleScore String

PUT /

Request Body Type
updateItems Array (id, name, description, scaleItems)

PATCH /

Request Body Type
removeItems Array (id)

Songs

Returns the previously listened to song of the current user.

Request Body Type

Returns a list of the previously listened to songs of the current user. The size of the list is dependant on :count.

Request Body Type

Contributing

Code style

  • Indent using tabs.
    • Alignment using spaces, if you want alignment at all.

License

TODO

About

The API for Likert.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages