{"id":21270702,"url":"https://github.com/explodingcamera/minecraft-restadmin","last_synced_at":"2026-01-26T00:40:20.677Z","repository":{"id":256066062,"uuid":"853004067","full_name":"explodingcamera/minecraft-restadmin","owner":"explodingcamera","description":"A RESTful API for managing Minecraft servers (fabric)","archived":false,"fork":false,"pushed_at":"2024-11-19T00:00:44.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T07:59:30.227Z","etag":null,"topics":["fabricmc","minecraft","minecraft-mod"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/explodingcamera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-09-05T20:05:29.000Z","updated_at":"2024-11-20T13:16:53.000Z","dependencies_parsed_at":"2024-09-08T20:21:23.312Z","dependency_job_id":"98e4d1e5-b9ca-4752-9666-4eb70f6cdf1a","html_url":"https://github.com/explodingcamera/minecraft-restadmin","commit_stats":null,"previous_names":["explodingcamera/minecraft-restadmin"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/explodingcamera/minecraft-restadmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fminecraft-restadmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fminecraft-restadmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fminecraft-restadmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fminecraft-restadmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explodingcamera","download_url":"https://codeload.github.com/explodingcamera/minecraft-restadmin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fminecraft-restadmin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28762976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fabricmc","minecraft","minecraft-mod"],"created_at":"2024-11-21T08:18:20.847Z","updated_at":"2026-01-26T00:40:20.644Z","avatar_url":"https://github.com/explodingcamera.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RestAdmin\n\nA RESTful API for managing a Minecraft server. Supports Minecraft 1.21.1 with the [Fabric](https://fabricmc.net/) mod loader.\nCurrently very limited in functionality.\n\n## Authentication\n\nAll endpoints require a valid `Authorization` header with the format:\n\n```\nAuthorization: Bearer \u003ctoken\u003e\n```\n\nThe token must be at least 12 characters long and can be set in `./config/restadmin.json`.\n\n```json\n{\n  \"port\": 7070,\n  \"host\": \"0.0.0.0\",\n  \"token\": \"your_token_here\"\n}\n```\n\n## Endpoints\n\n### General\n\n#### Get Connected Players\n\n- **GET** `/players`\n- **Description**: Retrieves the list of connected players.\n- **Response**: JSON array of [Player](#player) objects.\n\n### Whitelist\n\n#### Get Whitelist\n\n- **GET** `/whitelist`\n- **Description**: Retrieves the list of whitelisted players.\n- **Response**: JSON array of player names.\n\n#### Check Whitelist Status\n\n- **GET** `/whitelist/{username_or_uuid}`\n- **Description**: Checks if a player (by username or UUID) is on the whitelist.\n- **Response**: [Player](#player) object.\n\n#### Add to Whitelist\n\n- **POST** `/whitelist/{username_or_uuid}`\n- **Description**: Adds a player (by username or UUID) to the whitelist.\n- **Response**: [Player](#player) object.\n\n#### Remove from Whitelist\n\n- **DELETE** `/whitelist/{username_or_uuid}`\n- **Description**: Removes a player (by username or UUID) from the whitelist.\n- **Response**: [Player](#player) object.\n\n## Types\n\n### Player\n\n```ts\ntype Player = {\n  name: string;\n  id: string;\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplodingcamera%2Fminecraft-restadmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplodingcamera%2Fminecraft-restadmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplodingcamera%2Fminecraft-restadmin/lists"}