- Move migrations/ to database/schema/ for clarity on database schema definitions - Move sqlc.yaml to internal/database/ to group with database code - Move static/ to cmd/server/static/ to co-locate with server - Update all configuration files and documentation - Follow Go project conventions for better organization
47 lines
712 B
Plaintext
47 lines
712 B
Plaintext
meta {
|
|
name: Delete Ebook Folder
|
|
type: http
|
|
seq: 10
|
|
}
|
|
|
|
delete {
|
|
url: {{base_url}}/api/auth/ebook-folders
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"folder_path": "/app/uploads"
|
|
}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Delete Ebook Folder
|
|
|
|
Removes an ebook folder for the authenticated user.
|
|
|
|
**Method:** DELETE
|
|
|
|
**Endpoint:** /api/auth/ebook-folders
|
|
|
|
**Authentication:** Required
|
|
|
|
**Request Body:**
|
|
- `folder_path` (string, required): Path to the ebook folder to remove
|
|
|
|
**Response:**
|
|
- `message` (string): Success message
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Invalid request
|
|
- 401: Unauthorized
|
|
- 500: Internal server error
|
|
}
|