From c2c6c7d58483d1ffd3c75dfc97542579699ddaf92d51b61e2cee3b78a95898de Mon Sep 17 00:00:00 2001 From: aslan Date: Sat, 27 Dec 2025 00:10:27 +0100 Subject: [PATCH] Rework patches --- docs/api/user.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/api/user.md b/docs/api/user.md index 2ab5433..542bed5 100644 --- a/docs/api/user.md +++ b/docs/api/user.md @@ -18,25 +18,6 @@ Returns a user with id = {id} } ``` -## GET /api/v1/user/{id}/sessions - -_Requires an authorization header_ - -Returns all sessions for a user with id = {id} - -### Response: - -```json -{ - "sessions": [ - { - "id": "string", - "userId": "string" - } - ] -} -``` - ## PATCH /api/v1/user/{id} _Requires an authorization header_ @@ -61,3 +42,22 @@ Updates a user with id = {id} "description": "string" } ``` + +## GET /api/v1/user/{id}/sessions + +_Requires an authorization header_ + +Returns all sessions for a user with id = {id} + +### Response: + +```json +{ + "sessions": [ + { + "id": "string", + "userId": "string" + } + ] +} +```