From e2e4e932d653dee85da819db078e8584f423c744 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:09:05 +0200 Subject: [PATCH] feat: new endpoint client-server/stats --- API/client-server/v1/stats.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 API/client-server/v1/stats.md diff --git a/API/client-server/v1/stats.md b/API/client-server/v1/stats.md new file mode 100644 index 0000000..fda3ded --- /dev/null +++ b/API/client-server/v1/stats.md @@ -0,0 +1,33 @@ +GET /v1/stats + +--- + +## Request + +No request parameters or request body. + +--- + +## Responses + +|Status|Description| +|-|-| +|200|The current stats of the server| + +### 200 response + +|Name|Type|Description| +|-|-|-| +|accounts|int|**Required**: The number of signed up accounts| +|uptime|int|**Required**: How many seconds the server has been running| +|version|string|**"Required**: The current server version| +|build_number|string|The hash of the last commit in the git repo? (maybe we want to define this some other way)| + +```json +{ + "accounts": 27, + "uptime": 189275, + "version": "0.0.2", + "build_number": "1fa926dd05" +} +``` \ No newline at end of file