- Sign up
- Login
- Post an image on a vision board
- Selecting what's the user humor for the day
- Get the track of how much water was drinked
- Having a place to post water and plans
Creating an account
POST /signup
Body | Type | Description |
---|---|---|
name |
string |
Required. Name from the user |
email |
email |
Required. Email for the application |
password |
string |
Required. Password used on the current application |
confirmPassword |
string |
Required. Password used on the current application |
Entering the application
POST /login
Body | Type | Description |
---|---|---|
email |
email |
Required. Email for the application |
password |
string |
Required. Password used on the current application |
Headers | Type | Description |
---|---|---|
Authorization |
string |
Required. Token from the user |
Dealing with the vision board from the user
POST /vision
Body | Type | Description |
---|---|---|
image |
URL |
Required. Image from the user dream |
GET /visions
All the images from the user vision board
[
{
"id": 4,
"userId": 10,
"image": "IMAGE URL"
},
{
"id": 5,
"userId": 10,
"image": "IMAGE URL"
}
]
The user mood for the day
POST /mood
Body | Type | Description |
---|---|---|
mood |
string |
Required. Mood from the user for the day, valids: awful, bad, average, good, happy |
createdAt |
date |
Required. Date from when its created. Format: DD-MM-YYYY |
GET /mood/DAY
Finding the user mood from that day
{
"id": 5,
"userId": 10,
"mood": "good",
"createdAt": "25-11-2022"
}
The user diary and plans for the day
POST /diary
Body | Type | Description |
---|---|---|
type |
string |
Required. Diary from the user for the day, valids: plans, diary |
createdAt |
date |
Required. Date from when its created. Format: DD-MM-YYYY |
text |
string |
Required. The text the user want to be your plan or diary |
GET /diary/DAY
Finding the user diary and plan from that day
[
{
"id": 7,
"userId": 10,
"type": "plans",
"text": "TEXT",
"createdAt": "25-11-2022"
},
{
"id": 6,
"userId": 10,
"type": "diary",
"text": "TEXT",
"createdAt": "25-11-2022"
}
]
The user water for the day
POST /water
Body | Type | Description |
---|---|---|
waterQuantity |
number |
Required. Quantity of water drinked by the user in L |
createdAt |
date |
Required. Date from when its created. Format: DD-MM-YYYY |
GET /water/DAY
Finding the user water quantity from that day
{
"id": 4,
"userId": 10,
"waterQuantity": 2,
"createdAt": "25-11-2022"
}
The weight of the user
POST /weight
Body | Type | Description |
---|---|---|
weight |
number |
Required. The weight on Kg from the user |
createdAt |
date |
Required. Date from when its created. Format: DD-MM-YYYY |
GET /weight
Finding the user weight
[
{
"id": 5,
"userId": 10,
"weight": 90,
"createdAt": "25-11-2022"
}
]
git clone git@github.com:thaisealves/every-single-day-back.git
npm run dev
https://github.com/thaisealves/every-single-day-front