mirror of
https://github.com/Kizuren/QuizConnect.git
synced 2026-01-02 04:34:17 +01:00
Updated apiDoc.md for the logout endpoints
This commit is contained in:
parent
1f03e8caf7
commit
eb36080bc1
1 changed files with 40 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue