BulaCooola / TourneyPro

0 stars 0 forks source link

TASK - API ROUTES (under src/app/api) #7

Closed BulaCooola closed 5 months ago

BulaCooola commented 6 months ago

api routes

/

POST /register $\rightarrow$ Endpoint to register new users

/user

PATCH /user/[id] $\rightarrow$ Endpoint for updating existing user info POST /user/[id] $\rightarrow$ Endpoint for uploading new user info DELETE /user/[id] $\rightarrow$ Endpoint for deleting user (will also log out user)

/teams

POST /teams/create $\rightarrow$ Endpoint to post team creation PATCH /teams/[id] $\rightarrow$ Endpoint to edit team info POST /team/[id]/members $\rightarrow$ Endpoint to add members DELETE /team/[id]/members $\rightarrow$ Endpoint to delete members

/tournaments

POST /tournaments/create $\rightarrow$ Endpoint to create the tournament PATCH /tournaments/[id] $\rightarrow$ Endpoint to edit tournament details DELETE /tournaments/[id] $\rightarrow$ Endpoint to delete tournament

POST /search $\rightarrow$ Endpoint to search for teams/users/tournaments (like Lab 6 search Extra Credit)

Non-API related (can be called client-side)

GET user GET allUsers GET tournament GET allTournaments GET team GET allTeams

Padraig-Phelps commented 5 months ago

done