Skip to content
Somorovd edited this page Jun 26, 2023 · 9 revisions

Session

  • GET /api/session -- get current user
  • POST /api/session -- login
  • DELETE /api/session -- logout

Users

  • POST /api/users -- signup
  • PUT /api/users/:userid -- edit profile

Servers (start with partial CRUD)

  • GET /api/servers -- get all servers (public servers)

  • GET /api/server/current -- get current user's servers

  • POST /api/servers -- create server

  • PUT /api/servers/:serverid -- edit server

  • DELETE /api/servers/:serverid -- delete server

Channels (Start with partial CRUD)

  • GET /api/servers/:serverid/channel -- get channel list
  • POST /api/servers/:serverid/channel -- create new channel in server

Messages

  • GET /api/channel/:channelid/messages -- get channel messages
  • POST /api/channel/:channelid/messages -- create new message
  • PUT /api/messages/:messageid -- edit message
  • DELETE /api/messages/:messageid -- delete message
Clone this wiki locally