Backend Routes - Twprcntmlk/discord-clone GitHub Wiki

User Routes

Method Route Response
GET /api/user/:id Get one user
POST /api/user/ Add user
PUT /api/user/:id Edit User
DELETE /api/user/:id Delete

Relations Routes

Method Route Response
POST /api/relations/ Add user
PUT /api/relations/ Edit User
DELETE /api/relations/ Delete

Server Routes

Method Route Response
GET /api/servers/ Get All Server
GET /api/servers/:serverId Get One Server
POST /api/servers/ Create Server
PUT /api/servers/:serverId Edit Server
DELETE /api/servers/:serverId Delete

Channel Routes

Method Route Response
GET /api/channels/ Get All Channel
GET /api/channels/:channelId Get One Channel
POST /api/channels/ Create Channel
PUT /api/channels/:channelId Edit Channel
DELETE /api/channels/:channelId Delete Channel

Message Routes

Method Route Response
GET /api/messages/ Get All Message
POST /api/messages/ Create Message
PUT /api/messages/ Edit Message
DELETE /api/messages/ Delete Message