Skip to content

bwpotluckplanner3/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENDPOINTS

Login/Registration Enpoints

[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

ENDPOINTS BELOW THIS LINE REQUIRE USERS TO HAVE A TOKEN FOR IT TO WORK

[GET] - https://lambdapotluck.herokuapp.com/api/auth

:gets all users in database

Organizer Endpoints

[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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •