POST /login
{
email,
password //(min 6 chars)
}
POST /register
{
username, //(min 2 chars),
email,
password //(min 6 chars)
}
GET /event/
POST /new-wish/
{
from, //(min 2 chars)
body, //(min 2 chars)
image //(not required)
}
Use Authorization header with value of - Bearer userId:(user id here)
GET /user/my-events
POST /user/new-event
{
title, //(min 2 chars),
category, //(number),
startDate, //(date, like "08-05-2018 19:00")
endDate, //(date, later than startDate),
location //(min 2 chars)
}
POST /user/new-wish/
{
from, //(min 2 chars)
body, //(min 2 chars)
image //(not required)
}
PUT /user/event/ Notice you don't have to send all fields, just the modified
{
title, //(min 2 chars),
category, //(number),
startDate, //(date, like "08-05-2018 19:00")
endDate, //(date, later than startDate),
location //(min 2 chars)
}