backend routes - lockjohn/eventdark GitHub Wiki
HTML
GET / StaticPagesController#root
API Endpoints
users
GET /api/users/:id
- user show page json.jbuilder with registrations, followings, bookmarksPOST /api/users
- sign up
session
POST /api/session
- log inDELETE /api/session
- log out
events
GET /api/events
- returns relevant events (filtered by data/params)GET /api/events/:id
- returns eventPOST /api/events
- creates a eventPATCH /api/events/:id
- edit a eventDELETE /api/events/:id
- remove a event
registrations
POST /api/users/:user_id/registrations
- create event registrationDELETE /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.