Simple RESTful API for Book Reading Application
Try our demo Android application to see the API in action
📥 Download APK (Demo) 📂 View on GitHubhttp://testapijo.my.id/api/v0
All endpoints are relative to the base URL. Replace your-domain.com with your actual server domain.
Retrieve all books with their chapters.
Retrieve a specific book with all its chapters.
| Parameter | Type | Description |
|---|---|---|
| id | integer | The ID of the book |
Retrieve all chapters for a specific book.
| Parameter | Type | Description |
|---|---|---|
| bookId | integer | The ID of the book |
Retrieve a specific chapter with book information.
| Parameter | Type | Description |
|---|---|---|
| id | integer | The ID of the chapter |
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier |
| title | string | Book title |
| author | string | Author name |
| description | string | Book description |
| cover_image | string (URL) | Book cover image URL |
| chapters | array | Array of chapter objects |
| created_at | timestamp | Creation timestamp |
| updated_at | timestamp | Last update timestamp |
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier |
| book_id | integer | Parent book ID |
| chapter_number | integer | Chapter number |
| title | string | Chapter title |
| content | text | Chapter content |
| created_at | timestamp | Creation timestamp |
| updated_at | timestamp | Last update timestamp |