Developed by: Higor Silvério
Orientation by: Frederico Augusto Laranjo Silva
Question entity fields: id, status, description, options (nullable), creationDate and modifiedDate
Answer entity fields: id, key, name, answer, questionId, creationDate and modifiedDate
User entity fields: id, key, name, answer, questionId, creationDate and modifiedDate
POST /api/answers or /api/questions - Creates new answer/question (authenticated)
GET /api/answer or /api/questions - Gets all answers/questions (authenticated)
GET /api/answer/:answerID or /api/questions/:questionID - Gets an answer/question (authenticated)
PATCH /api/answer/:answerID or /api/questions/:questionID - Updates an answer/question (admin only)
DELETE /api/answer/:answerID or /api/questions/:questionID - Deletes an answer/question (admin only)
POST /users - Registers new user (admin only)
GET /users/:userId - Retrieves user's information (admin only)
PATCH /users/:userId - Updates user's role (admin only)
DELETE /users/:userId - Deletes user (admin only)
POST /login - Returns token for API usage (anyone)
GET /documentation - On browser, shows API documentation (anyone)
DB_HOST=yourMongoDbHostConnectionString
JWT_SECRET=yourJwtSecretString
BCRYPT_SALT=yourBcryptSaltNumber