From 983f2db910e3f54ffa2f00925499d3ce248001bb Mon Sep 17 00:00:00 2001 From: aasch2020 Date: Fri, 1 Mar 2024 18:37:20 -0800 Subject: [PATCH] yay --- API_Interaction.md | 14 +++++++------- slugquest.db | Bin 49152 -> 49152 bytes 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/API_Interaction.md b/API_Interaction.md index 1e9783b..5a8bf5c 100644 --- a/API_Interaction.md +++ b/API_Interaction.md @@ -403,46 +403,46 @@ const response = await fetch(backend/protected, { - **Status Code**: 200 OK ### getTeamTask -- **Endpoint**: `/getTeamtask/:id` +- **Endpoint**: `/api/v1/getTeamtask/:id` - **NOTE**: Replace `:id` with the actual TeamID. - **Description**: get a teams task by id - **Response**: - same as other task fetch endpoints, an array of tasks ### addUserTeam -- **Endpoint**: '/addUserTeam/:id/:code' +- **Endpoint**: '/api/v1/addUserTeam/:id/:code' - id is team id, code is user code - **Description**: add a user to a team - **Response**: - 200ok, or error ### getUserTeams -- **Endpoint**: `/getUserTeams` +- **Endpoint**: `/api/v1/getUserTeams` - **Description**: get current user teams - **Response**: - array of team objects, 200 code ### getTeamUsers -- **Endpoint**: `/getTeamUsers/:id ` +- **Endpoint**: `/api/v1/getTeamUsers/:id ` - **NOTE**:take in a team ID - **Description**: sends back user abstraction array, similar to friends function - **Response**: - array of users 200 code ### deleteTeamUser - **Endpoint**: '/teamUserDelete/:tid/:code' + **Endpoint**: '/api/v1/teamUserDelete/:tid/:code' - id is team id, code is user code - **Description**: deletes the user from the team -**Response**: - 200 ok or error ### deleteTeam -**Endpoint**: '/deleteTeam/:tid' +**Endpoint**: '/api/v1/deleteTeam/:tid' -**NOTE**:team id as id -**Description**:deletes the team, send a delete req. -**Response**:200 ok - **Description**: sends back user abstraction, similar to friends function ### createTeam -**Endpoint**: '/createTeam/:name' +**Endpoint**: '/api/v1/createTeam/:name' -**Description**:create request -**Response**: - 200 ok with teamID diff --git a/slugquest.db b/slugquest.db index 7489723ec0401a7a625ed59ce4fd89a8cdb8954d..a56ef3290b932d5f72d6dd6f35e9b0dc57c9b531 100644 GIT binary patch delta 449 zcmZo@U~Xt&o*>Q0IZ?)$m6JiQtaD?^0)AFT{tO2Gjg8M)HY*5JaMd@8GI9jVH#%}~ zNT=uLr{|>V<|mexWEj;L8X6fIn3)<{7?>EESsI(0n;2SHI_9KSC^!};XJnL=6ck(O z>*r(`>p}FD7N-^^=jWBA=9TCr=jZAt>N`58TjVEug*sLQr5Bp|_*rDT7rGZFrg>)j zB)V3HN0^zGSSY(Vr@0n-7yA1d`ls3!Tbk)6n?+i>`+5g)F)%PN^510OzqwgZ;5@&f z8gnow5iW#i`^v!o6{zhszbF^8G$+(VUa*N182BdurP}!G^B8#2L4Y# ohcGZ~787{P&(FiiEYBH|SezY_n3R*syP478zx*Nvfkh4m07+4J9smFU delta 34 qcmZo@U~Xt&o*>Q0K2gS*m7PH^+-qaX0{+b`1%KohH8?CP2mk=EKnqU*