From 7400c5335ddd60ae80d369cacca4d1ba9c4a9e8dc2c314e110f41df696d04f73 Mon Sep 17 00:00:00 2001 From: aslan Date: Sat, 3 Jan 2026 14:36:12 +0100 Subject: [PATCH] Update user and community api --- docs/api/community.md | 7 +++++-- docs/api/user.md | 13 +++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/api/community.md b/docs/api/community.md index 5f260ae..9836f83 100644 --- a/docs/api/community.md +++ b/docs/api/community.md @@ -36,7 +36,8 @@ Creates a new community and returns it "id": "string", "name": "string", "description": "string", - "ownerId": "string" + "ownerId": "string", + "creationDate": "number" } ``` @@ -61,7 +62,9 @@ Updates a community with id = {id} { "id": "string", "name": "string", - "description": "string" + "description": "string", + "ownerId": "string", + "creationDate": "number" } ``` diff --git a/docs/api/user.md b/docs/api/user.md index 3c4b8fe..2b07130 100644 --- a/docs/api/user.md +++ b/docs/api/user.md @@ -58,7 +58,9 @@ Creates a new user and returns it "username": "string", "email": "string", "description": "string", - "admin": "boolean" + "admin": "boolean", + "registerDate": "number", + "lastLogin": "number" } ``` @@ -82,8 +84,12 @@ Updates a user with id = {id} ```json { "id": "string", + "username": "string", "email": "string", - "description": "string" + "description": "string", + "admin": "boolean", + "registerDate": "number", + "lastLogin": "number" } ``` @@ -135,8 +141,7 @@ Returns all communities for a user with id = {id} "communities": [ { "id": "string", - "name": "string", - "description": "string" + "name": "string" } ] }