-
Notifications
You must be signed in to change notification settings - Fork 0
backend routes
John Lockhart edited this page Aug 7, 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/search/?k=v
- index of search results
-
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.
-
POST /api/users/:user_id/bookmarks
- bookmark an event -
DELETE /api/users/:user_id/bookmarks
- bookmark an event
-Note: bookmarks does not include a GET route, will render the api/users/show.json.jbuilder view.
bonus:
-
POST /api/users/:user_id/followings
- follow an organizer -
DELETE /api/users/:user_id/followings
- unfollow an organizer
-Note: follows does not include a GET route because we will have these routes render the api/users/show.json.jbuilder view.