Skip to content

Backend Routes

Demetri Sakellaropoulos edited this page May 11, 2019 · 1 revision

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information of displayed messages and for the User Search feature
  • POST /api/users - sign up

session

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

user_cradles

  • GET /api/user_cradles - returns relevant user_cradles (filtered by data/params)
  • GET /api/user_cradles/:id - returns message
  • POST /api/user_cradles - creates a message
  • PATCH /api/user_cradles/:id - edit a message
  • DELETE /api/user_cradles/:id - remove a message
Clone this wiki locally