Updated apiDoc.md for the logout endpoints

This commit is contained in:
MarcUs7i 2025-04-27 22:31:58 +02:00
parent 1f03e8caf7
commit eb36080bc1

View file

@ -37,6 +37,26 @@ Authenticates an admin user and returns an access token.
}
```
### Admin Logout
Logs out an admin user.
**Endpoint:** `DELETE /api/admin/logout`
**Request Body:**
```json
{
"accessToken": "string"
}
```
**Response:**
```json
{
"success": true,
"errorMessage": null
}
```
### User Login
Authenticates a user with their PIN and returns an access token.
@ -58,6 +78,26 @@ Authenticates a user with their PIN and returns an access token.
}
```
### User Logout
Logs out a user.
**Endpoint:** `DELETE /api/user/logout`
**Request Body:**
```json
{
"accessToken": "string"
}
```
**Response:**
```json
{
"success": true,
"errorMessage": null
}
```
## Admin API
All admin endpoints require authentication using the `Authorization: Bearer {token}` header.