mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 16:11:10 +00:00
Refactors the get book slice
This commit is contained in:
1 parent
1d35cd01db
commit
8aaf9fe64e
17 files changed
+395
-347
No files matched your search
@@ -255,7 +255,107 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{bookId}
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Returns an empty response. This endpoint is not yet implemented.
|
||||
```json
|
||||
{
|
||||
"id": "32b336e8-dafc-4a08-9dec-9454e66dd55d",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"path": "/media/libraries/books/the-fellowship-of-the-ring.pdf",
|
||||
"metadata": {
|
||||
"publisher": "Houghton Mifflin",
|
||||
"pageCount": 398,
|
||||
"title": "The Fellowship of the Ring",
|
||||
"originalTitle": "The Fellowship of the Ring",
|
||||
"description": "The first part of J.R.R. Tolkien's epic adventure The Lord of the Rings. In a sleepy village in the Shire, young Frodo Baggins finds himself faced with an immense task, as his elderly cousin Bilbo entrusts the Ring to his care. Frodo must leave his home and make a perilous journey across Middle-earth to the Cracks of Doom, there to destroy the Ring and foil the Dark Lord in his evil purpose.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1954-07-29",
|
||||
"originalReleaseYear": 1954,
|
||||
"reReleaseDate": "2001-09-06",
|
||||
"reReleaseYear": 2001,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "50th Anniversary Edition"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "epic fantasy"
|
||||
},
|
||||
{
|
||||
"name": "quest"
|
||||
},
|
||||
{
|
||||
"name": "middle-earth"
|
||||
}
|
||||
],
|
||||
"genres": [
|
||||
{
|
||||
"name": "fantasy"
|
||||
},
|
||||
{
|
||||
"name": "adventure"
|
||||
},
|
||||
{
|
||||
"name": "classic"
|
||||
}
|
||||
]
|
||||
},
|
||||
"format": "Paperback",
|
||||
"edition": "50th Anniversary Edition",
|
||||
"volumeNumber": 1,
|
||||
"series": null,
|
||||
"asin": "B007978NPG",
|
||||
"goodreadsId": "3",
|
||||
"lccn": "54009621",
|
||||
"oclcNumber": "ocm00012345",
|
||||
"openLibraryId": "OL7603910M",
|
||||
"libraryThingId": "3203347",
|
||||
"googleBooksId": "aWZzLPhY4o0C",
|
||||
"barnesAndNobleId": "1100307790",
|
||||
"appleBooksId": "id395211",
|
||||
"isbns": [
|
||||
{
|
||||
"value": "0395272238",
|
||||
"format": "Isbn10"
|
||||
},
|
||||
{
|
||||
"value": "9780395272237",
|
||||
"format": "Isbn13"
|
||||
}
|
||||
],
|
||||
"contributors": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Author" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Illustrator" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"source": "GoogleBooks",
|
||||
"value": 4.36,
|
||||
"maxValue": 5,
|
||||
"voteCount": 2345678
|
||||
},
|
||||
{
|
||||
"source": "Amazon",
|
||||
"value": 4.7,
|
||||
"maxValue": 5,
|
||||
"voteCount": 87654
|
||||
}
|
||||
],
|
||||
"metadataStatus": "Pending",
|
||||
"lastMetadataUpdateUtc": null,
|
||||
"metadataProvider": null,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null,
|
||||
"coverPath": null
|
||||
}
|
||||
```
|
||||
|
||||
### Get Books
|
||||
|
||||
|
||||
Reference in new issue
Block a user