Complete project cleanup: remove unneeded files, organize static assets, update .gitignore

This commit is contained in:
2026-01-22 14:08:57 -05:00
parent 61f772b976
commit d98a0675e1
71 changed files with 164 additions and 6175 deletions
+13 -5
View File
@@ -23,6 +23,14 @@ body:json {
}
}
script:post-response {
function onResponse(res) {
let data = res.getBody();
let token = bru.setEnvVar("ebookid", data.id, { persist: true });
}
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0
@@ -30,11 +38,11 @@ settings {
docs {
## Create Ebook
Creates a new ebook entry in the library.
**Authentication:** Required (Bearer token)
**Request Body:**
- `title` (string, required): Book title
- `author` (string, optional): Book author
@@ -44,9 +52,9 @@ docs {
- `file_size` (number, optional): File size in bytes
- `mime_type` (string, optional): MIME type
- `cover_image_path` (string, optional): Path to cover image
**Response:** Created ebook object
**Error Responses:**
- 401: Invalid authentication
- 400: Invalid request data
+15 -11
View File
@@ -5,32 +5,36 @@ meta {
}
delete {
url: http://localhost:8765/api/ebooks/123e4567-e89b-12d3-a456-426614174000
url: http://localhost:8765/api/ebooks/{{ebookid}}
body: none
auth: inherit
}
script:post-response {
function onResponse(res) {
let token = bru.setEnvVar("ebookid", "", { persist: true });
}
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Delete Ebook
Removes an ebook from the library.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Ebook UUID
**Response:** 204 No Content
**Error Responses:**
- 401: Invalid authentication
- 404: Ebook not found
}
}
+8 -11
View File
@@ -5,7 +5,8 @@ meta {
}
get {
url: http://localhost:8765/api/ebooks/123e4567-e89b-12d3-a456-426614174000
url: http://localhost:8765/api/ebooks/{{ebookid}}
body: none
auth: inherit
}
@@ -14,23 +15,19 @@ settings {
timeout: 0
}
docs {
## Get Ebook
Retrieves details of a specific ebook.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Ebook UUID
**Response:** Complete ebook object with all metadata
**Error Responses:**
- 401: Invalid authentication
- 404: Ebook not found
}
}
+7 -8
View File
@@ -6,6 +6,7 @@ meta {
get {
url: http://localhost:8765/api/ebooks
body: none
auth: inherit
}
@@ -14,21 +15,19 @@ settings {
timeout: 0
}
docs {
## List Ebooks
Retrieves a paginated list of ebooks.
**Authentication:** Required (Bearer token)
**Query Parameters:**
- `limit` (number, optional): Number of results (default: 20, max: 100)
- `offset` (number, optional): Pagination offset (default: 0)
**Response:** Array of ebook objects with id, title, author, etc.
**Error Responses:**
- 401: Invalid authentication
}
}
+7 -7
View File
@@ -5,7 +5,7 @@ meta {
}
put {
url: http://localhost:8765/api/ebooks/123e4567-e89b-12d3-a456-426614174000
url: http://localhost:8765/api/ebooks/{{ebookid}}
body: json
auth: inherit
}
@@ -25,23 +25,23 @@ settings {
docs {
## Update Ebook
Updates an existing ebook's metadata.
**Authentication:** Required (Bearer token)
**Path Parameters:**
- `id` (string): Ebook UUID
**Request Body:** (all fields optional)
- `title` (string): Book title
- `author` (string): Book author
- `isbn` (string): ISBN number
- `description` (string): Book description
- `cover_image_path` (string): Path to cover image
**Response:** Updated ebook object
**Error Responses:**
- 401: Invalid authentication
- 404: Ebook not found