ENDPOINTS
[POST] - https://lambdapotluck.herokuapp.com/api/auth/register
:registers new user
required fields:
first_name,
last_name,
email,
password
[POST] - https://lambdapotluck.herokuapp.com/api/auth/login
:logs new user in & generates a token
requires:
email,
password
[GET] - https://lambdapotluck.herokuapp.com/api/auth
:gets all users in database
[GET] - https://lambdapotluck.herokuapp.com/api/organizer/:user_id
:gets all events belonging created by a user
[POST] - https://lambdapotluck.herokuapp.com/api/organizer/event
:creates a new event
required fields:
event_title,
organizer (which is the user_id),
event_location,
event_description,
event_date
[PUT] - https://lambdapotluck.herokuapp.com/api/organizer/event/:event_id
:updates an event with an event_id
required fields:
event_id
event_title,
organizer (generated with the user_id),
event_location,
event_description,
event_date