{"id":20502540,"url":"https://github.com/pollak-projects/pollakesportbackend","last_synced_at":"2025-10-20T07:54:32.458Z","repository":{"id":259231835,"uuid":"877334698","full_name":"pollak-projects/PollakEsportBackend","owner":"pollak-projects","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-09T21:14:01.000Z","size":184,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-12T20:37:18.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pollak-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T13:32:24.000Z","updated_at":"2025-03-07T12:06:17.000Z","dependencies_parsed_at":"2024-10-23T18:30:46.423Z","dependency_job_id":"75858f91-d9b7-42f3-9fb6-d1b044430f03","html_url":"https://github.com/pollak-projects/PollakEsportBackend","commit_stats":null,"previous_names":["pollak-projects/pollakesportbackend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pollak-projects/PollakEsportBackend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollak-projects%2FPollakEsportBackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollak-projects%2FPollakEsportBackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollak-projects%2FPollakEsportBackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollak-projects%2FPollakEsportBackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pollak-projects","download_url":"https://codeload.github.com/pollak-projects/PollakEsportBackend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollak-projects%2FPollakEsportBackend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280049448,"owners_count":26263872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T19:23:44.257Z","updated_at":"2025-10-20T07:54:32.444Z","avatar_url":"https://github.com/pollak-projects.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pollak-Backend\n\nThe backend of the Pollak E-Sports\n\n## CheckList\n- Users : Done \n- Teams : Done\n- Variants : Done\n- Types : Done\n- Games : Done \n- Rounds : Done \n- Seeds : Done \n- TeamsOnSeed : Done\n- UsersOnTeam : Done\n- RoundsOnGame : Done\n- GameVariants : Done\n- Invite Code : Done (only code, not link)\n- PermissionTable : TODO\n- PermissionHandlingOnEndpoints : TODO\n- Sessions : TODO\n- Tokens : TODO\n- AuthController : TODO\n\n# Note !Important!\n- userId is a temporarily data in every enpoint! It'll be fixed after the tokenhadling is done since we'll get the id from the token.\n\n# Endpoints\n## GameController\n - ### GET || url/game/ - getAllGames\n - ### GET || url/game/:id - getGameById\n - ### POST || url/game/- createGame\n- - #### Body: name, playerCount, playerPerTeam, requiredForPrize, status\n- ### PUT || url/game/:id - updateGame \n- - #### Params: id\n- - #### Body: name, playerCount, playerPerTeam, requiredForPrize, status\n - ### DELETE || url/game/:id - deleteGameById\n\n## GameVariantsController\n\n- ### GET || url/gamevariants/ - getAllGameVariants\n- ### GET || url/gamevariants/:gameid - getGameVariantByGameId\n- ### POST || url/gamevariants/ - createGameVariant\n  - #### Body: variantId, gameId, typeId\n- ### DELETE || url/gamevariants/ - deleteGameVariant\n  - #### Body: variantId, gameId, typeId\n  \n ## MixedController\n\n- ### GET || url/mixed/gamesforcards/ - getAllGamesForCards\n- ### GET || url/mixed/dataforbrackets/:gameid - getDataForBrackets\n  - #### Params: gameid\n- ### GET || url/mixed/teams/:teamid - getTeamsWithUsers\n  - #### Params: teamid\n- ### PUT || url/mixed/scores/ - updateScores\n  - #### Body: teamOneId, teamOneScore, teamTwoId, teamTwoScore, seedId\n  \n## RoundController\n\n- ### GET || url/round/ - getAllRounds\n- ### GET || url/round/:id - getRoundById\n  - #### Params: id\n- ### POST || url/round/ - createRound\n  - #### Body: number, title\n- ### PUT || url/round/:id - updateRound\n  - #### Params: id\n  - #### Body: number, title\n- ### DELETE || url/round/:id - deleteRound\n  - #### Params: id\n\n## RoundsOnGamesController\n\n- ### GET || url/roundsongame/ - getAllRoundsOnGames\n- ### GET || url/roundsongame/:gameid - getRoundOnGameById\n  - #### Params: gameid\n- ### POST || url/roundsongame/ - createRoundsOnGame\n  - #### Body: roundId, gameId\n- ### DELETE || url/roundsongame/ - deleteRoundsOnGame\n  - #### Body: roundId, gameId\n\n## SeedController\n\n- ### GET || url/seed/ - getAllSeeds\n- ### GET || url/seed/:id - getSeedById\n  - #### Params: id\n- ### POST || url/seed/ - createSeed\n  - #### Body: roundId, date (default: current date)\n- ### PUT || url/seed/:id - updateSeed\n  - #### Params: id\n  - #### Body: roundId, date (default: current date)\n- ### DELETE || url/seed/:id - deleteSeed\n  - #### Params: id\n\n## TeamController\n\n- ### GET || url/team/ - getAllTeams\n- ### GET || url/team/:name - getTeamByName\n  - #### Params: name\n- ### GET || url/team/invitecode/:id - getInviteCode\n  - #### Params: id\n- ### POST || url/team/ - createTeam\n  - #### Body: name\n- ### PUT || url/team/:id - updateTeam\n  - #### Params: id\n  - #### Body: name\n- ### PUT || url/team/ban/:id - banTeam\n  - #### Params: id\n- ### PUT || url/team/unban/:id - unbanTeam\n  - #### Params: id\n- ### DELETE || url/team/:id - deleteTeam\n  - #### Params: id\n\n## TeamsOnSeedController\n\n- ### GET || url/teamsonseed/ - getAllTeamsOnSeed\n- ### GET || url/teamsonseed/:seedid - getTeamsOnSeedById\n  - #### Params: seedid\n- ### POST || url/teamsonseed/ - createTeamsOnSeed\n  - #### Body: teamOneId, teamTwoId, seedId, teamOneScore, teamTwoScore\n- ### DELETE || url/teamsonseed/ - deleteTeamsOnSeed\n  - #### Body: teamOneId, teamTwoId, seedId\n\n## TypeController\n\n- ### GET || url/type/ - getAllTypes\n- ### GET || url/type/:type - getTypeByType\n  - #### Params: type\n- ### POST || url/type/ - createType\n  - #### Body: type\n- ### PUT || url/type/:id - updateType\n  - #### Params: id\n  - #### Body: type\n- ### DELETE || url/type/:id - deleteType\n  - #### Params: id\n\n## UserController\n\n- ### GET || url/user/ - getAllUsers\n- ### GET || url/user/:id - getUserById\n  - #### Params: id\n- ### POST || url/user/ - createUser\n  - #### Body: username, name, email, om, password\n- ### PUT || url/user/:id - updateUser\n  - #### Params: id\n  - #### Body: username, name, email, om, password\n- ### DELETE || url/user/:id - deleteUser\n  - #### Params: id\n\n## UsersOnTeamsController\n\n- ### GET || url/usersonteam/ - getAllUsersOnTeams\n- ### GET || url/usersonteam/:teamid - getUsersOnTeamById\n  - #### Params: teamid\n- ### POST || url/usersonteam/ - createUsersOnTeam\n  - #### Body: teamId, userId\n- ### POST || url/usersonteam/join/:code - userJoinByCode\n  - #### Params: inviteCode\n  - #### Body: userId\n- ### DELETE || url/usersonteam/ - deleteUsersOnTeam\n  - #### Body: teamId, userId\n\n## VariantController\n\n- ### GET || url/variant/ - getAllVariants\n- ### GET || url/variant/:name - getVariantByName\n  - #### Params: name\n- ### POST || url/variant/ - createVariant\n  - #### Body: name\n- ### PUT || url/variant/:id - updateVariant\n  - #### Params: id\n  - #### Body: name\n- ### DELETE || url/variant/:id - deleteVariant\n  - #### Params: id\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollak-projects%2Fpollakesportbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpollak-projects%2Fpollakesportbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollak-projects%2Fpollakesportbackend/lists"}