The auth folder now contains user management endpoints beyond just authentication: - User registration/login (auth) - Profile management (user) - Theme settings (user preferences) - Ebook folder management (user settings) Renaming to 'user' better reflects the expanded scope covering user accounts, preferences, and settings management.
38 lines
614 B
Plaintext
38 lines
614 B
Plaintext
meta {
|
|
name: Get Ebook Folders
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/auth/ebook-folders
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Ebook Folders
|
|
|
|
Retrieves all ebook folders for the authenticated user.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/auth/ebook-folders
|
|
|
|
**Authentication:** Required
|
|
|
|
**Response:** Array of folder objects
|
|
- `id` (string): Folder ID
|
|
- `user_id` (string): User ID
|
|
- `folder_path` (string): Folder path
|
|
- `created_at` (string): Creation timestamp
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
} |