Skip to content

Backend Routes

Kodi edited this page Aug 13, 2020 · 3 revisions

HTML

  • GET / StaticPagesController#root

users

  • GET /api/users - Returns user profile page
  • POST /api/users - sign up

session

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

comments

  • GET /api/comments - returns all comments on user's wall
  • GET /api/comments/:id - returns specific comment
  • POST /api/comments - creates a comment
  • PATCH /api/comments/:id - edit/update comment
  • DELETE /api/comments/:id - remove a comment

wall

  • GET /api/wall - return wall relevant to user
  • GET /api/wall/:id - returns a specific wall
Clone this wiki locally