-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
Williamsliam23 edited this page Nov 22, 2021
·
2 revisions
HTML
- GET StaticPagesController#root
API Endpoints
users
- GET /api/users/:id Retrieves a user's information and associations
- POST /api/users Signs up a new user and logs them in for current user
- PATCH /api.users/:id Edits the users information
- DELETE /api/users/:id Deletes the user
session
- POST /api/session Creates a session by logging in the user
- DELETE /api/session Deletes a session by logging out a user
server
- GET /api/servers Returns all servers
- GET /api/servers/:id Returns the specified server
- POST /api/servers Creates a new server
- PATCH /api/servers/:id Edits the specified server
- DELETE /api/servers/:id Deletes the server and all contents of it
channel
- GET /api/channels Returns a list of channels
- GET /api/channels/:id Returns specified server
- POST /api/channels Creates a new channel
- PATCH /api/channels/:id Edits the channel's information
- DELETE /api/channels/:id Deletes the specified channel
messages
- GET /api/messages Returns a list of messages
- GET /api/messages/:id Returns the specified message
- POST /api/messages Creates a new message
- PATCH /api/messages/:id Edits a message's information
- DELETE /api/messages/:id Deletes the specified message