Skip to content

Backend Routes

scott062 edited this page Nov 14, 2018 · 4 revisions

Backend Routes

HTML

  • GET /StaticPagesController#root

API Endpoints

users

  • GET /api/users -
  • POST /api/users - sign up

session

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

servers

  • GET /api/servers - retrieve all servers
  • GET /api/servers/:id - retrieve a particular server
  • POST /api/servers - create server

channels

  • GET /api/channels - retrieve all channels
  • POST /api/channels - create channel
  • DELETE /api/channels/:id - delete channel

messages

  • POST /api/messages - create a message
  • DELETE /api/messages/:id - delete a message

Considerations

  • How do I correctly nest information in these routes so I narrow my db visit?
Clone this wiki locally