diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-03 08:09:50 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-03 08:09:50 +0300 |
| commit | c0e92932f83ece433426d7e711c5165420a71e6c (patch) | |
| tree | fad2d23e07586c1dd19b332c7b0b94fe87ff4def /src/models.rs | |
| parent | 3558106317184cb41367007150f252fe1a9e9eeb (diff) | |
| download | oreilly-epub-c0e92932f83ece433426d7e711c5165420a71e6c.tar.gz oreilly-epub-c0e92932f83ece433426d7e711c5165420a71e6c.zip | |
Remove the search endpoint
It is not the best idea as it is non-deterministic, working on the
assumption that searching by ISBN would return the book and in a
consistent way.
The contents previously extracted from it, such as authors and
publishers, are already included in the OPF file which can be fetched
from the files list. Further items such as description can be fetched
from the metadata endpoint later if needed.
Diffstat (limited to 'src/models.rs')
| -rw-r--r-- | src/models.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/models.rs b/src/models.rs index 2809711..4da288e 100644 --- a/src/models.rs +++ b/src/models.rs @@ -7,19 +7,11 @@ pub struct Paginated<T> { pub results: Vec<T>, } -/// Model for the Search API. -#[derive(Debug, Deserialize)] -pub struct SearchResult { - pub title: String, - pub authors: Vec<String>, - pub publishers: Vec<String>, - pub cover_url: String, -} - /// Model for the EPUB API. #[derive(Debug, Deserialize)] pub struct EpubResponse { pub publication_date: String, + pub title: String, pub chapters: String, // This is a URL to the chapters list pub files: String, // This is a URL to the resource files pub spine: String, // This is a URL to the spine list |
