Refactors the add book slice and shared media contributor model across the stack

This commit is contained in:
BinaryAlley committed 2026-09-12 12:12:22 -07:00
1 parent 3a2c80b615
commit 9a71a6d32b
61 files changed
+5223 -1384

No files matched your search

@@ -1,9 +1,9 @@
POST {{host}}/api/v1/books
POST {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"path": "/books/the-fellowship-of-the-ring.pdf",
"path": "/media/libraries/books/the-fellowship-of-the-ring.pdf",
"metadata": {
"title": "The Fellowship of the Ring",
"originalTitle": "The Fellowship of the Ring",
@@ -13,7 +13,7 @@ Content-Type: application/json
"originalReleaseYear": 1954,
"reReleaseDate": "2001-09-06",
"reReleaseYear": 2001,
"releaseCountry": "uk",
"releaseCountry": "GB",
"releaseVersion": "50th Anniversary Edition"
},
"genres": [
@@ -56,31 +56,27 @@ Content-Type: application/json
"appleBooksId": "id395211",
"isbns": [
{
"value": "0395272238",
"format": "Isbn10"
"value": "0395272238",
"format": "Isbn10"
},
{
"value": "9780395272237",
"format": "Isbn13"
"value": "9780395272237",
"format": "Isbn13"
}
],
"contributors": [
{
"name": {
"displayName": "J.R.R. Tolkien"
},
"contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d",
"role": "Author"
},
{
"name": {
"displayName": "Alan Lee"
},
"contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e",
"role": "Illustrator"
}
],
"ratings": [
{
"source": "Goodreads",
"source": "GoogleBooks",
"value": 4.36,
"maxValue": 5,
"voteCount": 2345678