-
Notifications
You must be signed in to change notification settings - Fork 0
backend routes
John Lockhart edited this page Aug 17, 2018
·
5 revisions
GET / StaticPagesController#root
-
GET /api/users/:id
- user show page json.jbuilder with registrations, followings, bookmarks -
POST /api/users
- sign up
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/events
- returns relevant events (filtered by data/params) -
GET /api/events/:id
- returns event -
POST /api/events
- creates a event -
PATCH /api/events/:id
- edit a event -
DELETE /api/events/:id
- remove a event
-
POST /api/users/:user_id/registrations
- create event registration -
DELETE /api/users/:user_id/registrations
- delete event registration
-Note: registrations does not include a GET route, will render with the api/users/show.json.jbuilder view.