Update Bruno API tests for user endpoints including new profile management
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
meta {
|
||||
name: Delete Ebook Folder
|
||||
type: http
|
||||
seq: 7
|
||||
seq: 10
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/api/auth/ebook-folders/{{folder_path}}
|
||||
body: none
|
||||
url: {{base_url}}/api/auth/ebook-folders
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"folder_path": "/home/user/ebooks"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
@@ -17,24 +23,24 @@ settings {
|
||||
|
||||
docs {
|
||||
## Delete Ebook Folder
|
||||
|
||||
|
||||
Removes an ebook folder for the authenticated user.
|
||||
|
||||
|
||||
**Method:** DELETE
|
||||
|
||||
**Endpoint:** /api/auth/ebook-folders/:folderPath
|
||||
|
||||
|
||||
**Endpoint:** /api/auth/ebook-folders
|
||||
|
||||
**Authentication:** Required
|
||||
|
||||
**URL Parameters:**
|
||||
- `folderPath` (string): URL-encoded folder path to remove
|
||||
|
||||
|
||||
**Request Body:**
|
||||
- `folder_path` (string, required): Path to the ebook folder to remove
|
||||
|
||||
**Response:**
|
||||
- `message` (string): Success message
|
||||
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 400: Bad Request
|
||||
- 400: Invalid request
|
||||
- 401: Unauthorized
|
||||
- 404: Folder not found
|
||||
- 500: Internal server error
|
||||
}
|
||||
Reference in New Issue
Block a user