Skip to content

Arkaraj/Avalon-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avalon's API

Heroku: https://avalon7.herokuapp.com/

Routes:

General Routes

  • GET /room gets all rooms(where user is a member) of a user
  • GET /croom gets all rooms created by the user
  • POST /room creates a room for the user// content: name, description
  • DELETE /room/:roomId user leaves the room
  • POST /join joins the room based on the nanoid code// content: code

Task Routes

  • GET /task/ gets tasks of a pirticular user
  • GET /task/:room_id gets tasks of the pirticular room
  • PUT /task/:task_id updates the tasks// content: {completed: true}

Admins

  • GET admin/:room_id gets all members in the room with there tasks of that room

  • POST admin/task/:room_id/:user_id admins posts tasks to members// content: Task

  • DELETE admin/task/:taskId deletes/removes the task

  • Get /admin/:roomId/:userId the specific students tasks(for admin) (Important)

  • POST /admin/addAdmins/:roomId adds new admins by their githubIds

  • PUT /admin/:roomId updates the room description

  • PUT /room/msg/:roomId Create and Update the message of the room

  • DELETE /room/msg/:roomId Delete the message of the room

  • DELETE /admin/:room_id/:user_id Admin should be able to kick members

  • DELETE /admin/:roomId Admin can dismantle the room

To do

  • Create all the routes
  • Connect it with Svelte, polka, fetch

Releases

No releases published

Packages

No packages published