Mood Tracker is a colorful and responsive calendar that can be used as a personal journal and for tracking moods. Simply click a day in your calendar to set the mood and describe your thoughts on that day! The first line of your description will serve as a preview on the front face of your calendar for that day.
Content-Type: application/json
Method | URI | Response | Request Body | Purpose |
---|---|---|---|---|
POST | /register |
ACCEPTED or BAD_REQUEST* or INTERNAL_SERVER_ERROR |
User |
Registers a new user. |
GET | /login |
id: number |
- | - |
GET | /api/users/:id/moods |
List<Mood> |
- | Get all moods for a user |
PUT | /api/users/:id/moods |
- | Mood |
Saves a mood |
/register Responses |
---|
BAD_REQUEST: Name already taken. |
BAD_REQUEST: Invalid username or password. |
interface User {
name: string;
password: string;
}
interface Mood {
date: string; // yyyy-MM-dd
value: number; // Interval: [0, 4]
description:string;
}
Angular
(Frontend Framework)Spring Boot
(Backend Framework)Spring Security
(Access Control)Spring JPA
(Data Persistence)Hibernate
(ORM)MySQL
(DBMS)Tomcat
(Webserver)Gradle
(Build automation)JUnit
(Testing)Lombok
(Library)