Skip to content

ShaharGrauman/best-wishes

Repository files navigation

Best Wish

REST API

No Authentication is required for the following endpoints:

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)
}

Authentication is required for the following endpoints:

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)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published