Skip to content

Backend Routes

shaoevans edited this page Jan 7, 2020 · 5 revisions

HTML

  • GET / RootController#root

API Endpoints

users

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

session

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

forums

  • GET /api/forums - returns all forums
  • GET /api/forums/:forum_id - returns forum with :forumId

posts

  • POST /api/forums/:forum_id/posts - create new post in forum
  • GET /api/forums/:forum_id/posts - returns all posts in forum
Clone this wiki locally