Skip to content

backend routes

John Lockhart edited this page Aug 17, 2018 · 5 revisions

HTML


  • GET / StaticPagesController#root

API Endpoints


users

  • GET /api/users/:id - user show page json.jbuilder with registrations, followings, bookmarks
  • POST /api/users - sign up

session

  • POST /api/session - log in
  • DELETE /api/session - log out

events

  • 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

registrations

  • 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.

Clone this wiki locally