Update Bruno API tests for user endpoints including new profile management
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Add Ebook Folder
|
||||
type: http
|
||||
seq: 5
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
@@ -10,9 +10,9 @@ post {
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body {
|
||||
body:json {
|
||||
{
|
||||
"folder_path": "/path/to/ebooks"
|
||||
"folder_path": "/home/user/ebooks"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,27 +23,27 @@ settings {
|
||||
|
||||
docs {
|
||||
## Add Ebook Folder
|
||||
|
||||
|
||||
Adds a new ebook folder for the authenticated user.
|
||||
|
||||
|
||||
**Method:** POST
|
||||
|
||||
|
||||
**Endpoint:** /api/auth/ebook-folders
|
||||
|
||||
|
||||
**Authentication:** Required
|
||||
|
||||
|
||||
**Request Body:**
|
||||
- `folder_path` (string, required): Path to the ebook folder
|
||||
|
||||
|
||||
**Response:**
|
||||
- `id` (string): Folder ID
|
||||
- `user_id` (string): User ID
|
||||
- `folder_path` (string): Folder path
|
||||
- `created_at` (string): Creation timestamp
|
||||
|
||||
|
||||
**Status Codes:**
|
||||
- 201: Created
|
||||
- 400: Bad Request
|
||||
- 400: Invalid request
|
||||
- 401: Unauthorized
|
||||
- 409: Conflict (folder already exists)
|
||||
- 409: Folder already exists
|
||||
}
|
||||
Reference in New Issue
Block a user