Skip to content

Backend Routes

aguamenti edited this page Aug 18, 2018 · 7 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information
  • POST /api/users - sign up

session

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

channels

  • GET /api/channels/:id - returns specified channel and associated messages
  • GET /api/channels - returns index of all channels and direct messages
  • POST /api/channels - returns form to create new channel

messages

  • POST /api/channels/:channel_id/messages - creates and sends message to a chat
  • PATCH /api/channels/:channel_id/messages/:id - updates message
  • DELETE /api/channels/:channel_id/messages/:id - deletes message
Clone this wiki locally