diff --git a/bruno/auth/Add Ebook Folder.bru b/bruno/auth/Add Ebook Folder.bru new file mode 100644 index 0000000..b7fe4a5 --- /dev/null +++ b/bruno/auth/Add Ebook Folder.bru @@ -0,0 +1,49 @@ +meta { + name: Add Ebook Folder + type: http + seq: 5 +} + +post { + url: {{base_url}}/api/auth/ebook-folders + body: json + auth: inherit +} + +body { + { + "folder_path": "/path/to/ebooks" + } +} + +settings { + encodeUrl: true + timeout: 0 +} + +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 + - 401: Unauthorized + - 409: Conflict (folder already exists) +} \ No newline at end of file diff --git a/bruno/auth/Delete Ebook Folder.bru b/bruno/auth/Delete Ebook Folder.bru new file mode 100644 index 0000000..0fec713 --- /dev/null +++ b/bruno/auth/Delete Ebook Folder.bru @@ -0,0 +1,40 @@ +meta { + name: Delete Ebook Folder + type: http + seq: 7 +} + +delete { + url: {{base_url}}/api/auth/ebook-folders/{{folder_path}} + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 +} + +docs { + ## Delete Ebook Folder + + Removes an ebook folder for the authenticated user. + + **Method:** DELETE + + **Endpoint:** /api/auth/ebook-folders/:folderPath + + **Authentication:** Required + + **URL Parameters:** + - `folderPath` (string): URL-encoded folder path to remove + + **Response:** + - `message` (string): Success message + + **Status Codes:** + - 200: Success + - 400: Bad Request + - 401: Unauthorized + - 404: Folder not found +} \ No newline at end of file diff --git a/bruno/auth/Get Ebook Folders.bru b/bruno/auth/Get Ebook Folders.bru new file mode 100644 index 0000000..479c695 --- /dev/null +++ b/bruno/auth/Get Ebook Folders.bru @@ -0,0 +1,38 @@ +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 +} \ No newline at end of file diff --git a/bruno/scanner/Scan Ebooks.bru b/bruno/scanner/Scan Ebooks.bru new file mode 100644 index 0000000..0af2865 --- /dev/null +++ b/bruno/scanner/Scan Ebooks.bru @@ -0,0 +1,48 @@ +meta { + name: Scan Ebooks + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/scanner/scan + body: json + auth: inherit +} + +body { + { + "folder_paths": [ + "/path/to/ebooks", + "/another/path/to/ebooks" + ] + } +} + +settings { + encodeUrl: true + timeout: 0 +} + +docs { + ## Scan Ebooks + + Manually scans the specified folders for ebooks and adds them to the database. + + **Method:** POST + + **Endpoint:** /api/scanner/scan + + **Authentication:** Required + + **Request Body:** + - `folder_paths` (array of strings, required): Array of folder paths to scan + + **Response:** + - `message` (string): Success message + + **Status Codes:** + - 200: Success + - 400: Bad Request + - 401: Unauthorized +} \ No newline at end of file diff --git a/bruno/scanner/Start Scanner.bru b/bruno/scanner/Start Scanner.bru new file mode 100644 index 0000000..8b2cd49 --- /dev/null +++ b/bruno/scanner/Start Scanner.bru @@ -0,0 +1,48 @@ +meta { + name: Start Scanner + type: http + seq: 2 +} + +post { + url: {{base_url}}/api/scanner/start + body: json + auth: inherit +} + +body { + { + "folder_paths": [ + "/path/to/ebooks", + "/another/path/to/ebooks" + ] + } +} + +settings { + encodeUrl: true + timeout: 0 +} + +docs { + ## Start Scanner + + Starts monitoring the specified folders for ebook changes. + + **Method:** POST + + **Endpoint:** /api/scanner/start + + **Authentication:** Required + + **Request Body:** + - `folder_paths` (array of strings, required): Array of folder paths to monitor + + **Response:** + - `message` (string): Success message + + **Status Codes:** + - 200: Success + - 400: Bad Request + - 401: Unauthorized +} \ No newline at end of file diff --git a/bruno/scanner/Stop Scanner.bru b/bruno/scanner/Stop Scanner.bru new file mode 100644 index 0000000..d96e161 --- /dev/null +++ b/bruno/scanner/Stop Scanner.bru @@ -0,0 +1,37 @@ +meta { + name: Stop Scanner + type: http + seq: 3 +} + +post { + url: {{base_url}}/api/scanner/stop + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 +} + +docs { + ## Stop Scanner + + Stops monitoring folders for ebook changes. + + **Method:** POST + + **Endpoint:** /api/scanner/stop + + **Authentication:** Required + + **Request Body:** None + + **Response:** + - `message` (string): Success message + + **Status Codes:** + - 200: Success + - 401: Unauthorized +} \ No newline at end of file