From a6918b9206e5ede01fe3286983f4deffee86848d Mon Sep 17 00:00:00 2001 From: ae Date: Sat, 12 Apr 2025 16:38:50 +0300 Subject: [PATCH] docs: returned data from user deletion request --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 5a75731..4b5c82a 100644 --- a/docs/API.md +++ b/docs/API.md @@ -14,7 +14,7 @@ Endpoints protected with `requireAccessToken` middleware: - `GET /auth/me`: Get own user's data -> `userResponse` DTO (user ID, username, admin status, and timestamps of creation and last update) - `POST /auth/logout`: Logout the current user -> Cookie that replaces the refresh token with one that expires immediately - `PUT /auth/owner/`: Update password of the current user with `old_password` and `new_password` -> HTTP 204 response -- `DELETE /auth/owner/`: Delete the current user (as the owner) with `password` -> HTTP 204 response +- `DELETE /auth/owner/`: Delete the current user (as the owner) with `password` -> HTTP 204 response and cookie that replaces the refresh token with one that expires immediately - `GET /auth/admin/all`: As an administrator, list all users stored in the system (adjustable with pagination URL parameters) -> Array of `userResponse` DTOs - `DELETE /auth/admin/{userID}`: As an administrator, delete a specific user -> HTTP 204 response