Reverting to human-readable UUIDs :)

This commit is contained in:
Daniel Hutzel
2025-04-01 16:16:00 +02:00
parent f8231314e6
commit 5df70806f8
4 changed files with 50 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
ID,title,descr,author_ID,stock,price,currency_code,genre_ID ID,title,descr,author_ID,stock,price,currency_code,genre_ID
201,Wuthering Heights,"Wuthering Heights, Emily Brontë's only novel, was published in 1847 under the pseudonym ""Ellis Bell"". It was written between October 1845 and June 1846. Wuthering Heights and Anne Brontë's Agnes Grey were accepted by publisher Thomas Newby before the success of their sister Charlotte's novel Jane Eyre. After Emily's death, Charlotte edited the manuscript of Wuthering Heights and arranged for the edited version to be published as a posthumous second edition in 1850.",101,12,11.11,GBP,d74eb118-ff57-4776-96d3-0d649278bf6b 201,Wuthering Heights,"Wuthering Heights, Emily Brontë's only novel, was published in 1847 under the pseudonym ""Ellis Bell"". It was written between October 1845 and June 1846. Wuthering Heights and Anne Brontë's Agnes Grey were accepted by publisher Thomas Newby before the success of their sister Charlotte's novel Jane Eyre. After Emily's death, Charlotte edited the manuscript of Wuthering Heights and arranged for the edited version to be published as a posthumous second edition in 1850.",101,12,11.11,GBP,11
207,Jane Eyre,"Jane Eyre /ɛər/ (originally published as Jane Eyre: An Autobiography) is a novel by English writer Charlotte Brontë, published under the pen name ""Currer Bell"", on 16 October 1847, by Smith, Elder & Co. of London. The first American edition was published the following year by Harper & Brothers of New York. Primarily a bildungsroman, Jane Eyre follows the experiences of its eponymous heroine, including her growth to adulthood and her love for Mr. Rochester, the brooding master of Thornfield Hall. The novel revolutionised prose fiction in that the focus on Jane's moral and spiritual development is told through an intimate, first-person narrative, where actions and events are coloured by a psychological intensity. The book contains elements of social criticism, with a strong sense of Christian morality at its core and is considered by many to be ahead of its time because of Jane's individualistic character and how the novel approaches the topics of class, sexuality, religion and feminism.",107,11,12.34,GBP,d74eb118-ff57-4776-96d3-0d649278bf6b 207,Jane Eyre,"Jane Eyre /ɛər/ (originally published as Jane Eyre: An Autobiography) is a novel by English writer Charlotte Brontë, published under the pen name ""Currer Bell"", on 16 October 1847, by Smith, Elder & Co. of London. The first American edition was published the following year by Harper & Brothers of New York. Primarily a bildungsroman, Jane Eyre follows the experiences of its eponymous heroine, including her growth to adulthood and her love for Mr. Rochester, the brooding master of Thornfield Hall. The novel revolutionised prose fiction in that the focus on Jane's moral and spiritual development is told through an intimate, first-person narrative, where actions and events are coloured by a psychological intensity. The book contains elements of social criticism, with a strong sense of Christian morality at its core and is considered by many to be ahead of its time because of Jane's individualistic character and how the novel approaches the topics of class, sexuality, religion and feminism.",107,11,12.34,GBP,11
251,The Raven,"""The Raven"" is a narrative poem by American writer Edgar Allan Poe. First published in January 1845, the poem is often noted for its musicality, stylized language, and supernatural atmosphere. It tells of a talking raven's mysterious visit to a distraught lover, tracing the man's slow fall into madness. The lover, often identified as being a student, is lamenting the loss of his love, Lenore. Sitting on a bust of Pallas, the raven seems to further distress the protagonist with its constant repetition of the word ""Nevermore"". The poem makes use of folk, mythological, religious, and classical references.",150,333,13.13,USD,5d2c5060-84cf-4a94-9118-8d9ad88f2a24 251,The Raven,"""The Raven"" is a narrative poem by American writer Edgar Allan Poe. First published in January 1845, the poem is often noted for its musicality, stylized language, and supernatural atmosphere. It tells of a talking raven's mysterious visit to a distraught lover, tracing the man's slow fall into madness. The lover, often identified as being a student, is lamenting the loss of his love, Lenore. Sitting on a bust of Pallas, the raven seems to further distress the protagonist with its constant repetition of the word ""Nevermore"". The poem makes use of folk, mythological, religious, and classical references.",150,333,13.13,USD,16
252,Eleonora,"""Eleonora"" is a short story by Edgar Allan Poe, first published in 1842 in Philadelphia in the literary annual The Gift. It is often regarded as somewhat autobiographical and has a relatively ""happy"" ending.",150,555,14,USD,f283b1b3-b763-42f9-95f0-38e1d78a1d7e 252,Eleonora,"""Eleonora"" is a short story by Edgar Allan Poe, first published in 1842 in Philadelphia in the literary annual The Gift. It is often regarded as somewhat autobiographical and has a relatively ""happy"" ending.",150,555,14,USD,15
271,Catweazle,"Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts.",170,22,150,JPY,445a6c1e-071f-4e9d-b0bb-670ec73b0a49 271,Catweazle,"Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts.",170,22,150,JPY,13
1 ID title descr author_ID stock price currency_code genre_ID
2 201 Wuthering Heights Wuthering Heights, Emily Brontë's only novel, was published in 1847 under the pseudonym "Ellis Bell". It was written between October 1845 and June 1846. Wuthering Heights and Anne Brontë's Agnes Grey were accepted by publisher Thomas Newby before the success of their sister Charlotte's novel Jane Eyre. After Emily's death, Charlotte edited the manuscript of Wuthering Heights and arranged for the edited version to be published as a posthumous second edition in 1850. 101 12 11.11 GBP d74eb118-ff57-4776-96d3-0d649278bf6b 11
3 207 Jane Eyre Jane Eyre /ɛər/ (originally published as Jane Eyre: An Autobiography) is a novel by English writer Charlotte Brontë, published under the pen name "Currer Bell", on 16 October 1847, by Smith, Elder & Co. of London. The first American edition was published the following year by Harper & Brothers of New York. Primarily a bildungsroman, Jane Eyre follows the experiences of its eponymous heroine, including her growth to adulthood and her love for Mr. Rochester, the brooding master of Thornfield Hall. The novel revolutionised prose fiction in that the focus on Jane's moral and spiritual development is told through an intimate, first-person narrative, where actions and events are coloured by a psychological intensity. The book contains elements of social criticism, with a strong sense of Christian morality at its core and is considered by many to be ahead of its time because of Jane's individualistic character and how the novel approaches the topics of class, sexuality, religion and feminism. 107 11 12.34 GBP d74eb118-ff57-4776-96d3-0d649278bf6b 11
4 251 The Raven "The Raven" is a narrative poem by American writer Edgar Allan Poe. First published in January 1845, the poem is often noted for its musicality, stylized language, and supernatural atmosphere. It tells of a talking raven's mysterious visit to a distraught lover, tracing the man's slow fall into madness. The lover, often identified as being a student, is lamenting the loss of his love, Lenore. Sitting on a bust of Pallas, the raven seems to further distress the protagonist with its constant repetition of the word "Nevermore". The poem makes use of folk, mythological, religious, and classical references. 150 333 13.13 USD 5d2c5060-84cf-4a94-9118-8d9ad88f2a24 16
5 252 Eleonora "Eleonora" is a short story by Edgar Allan Poe, first published in 1842 in Philadelphia in the literary annual The Gift. It is often regarded as somewhat autobiographical and has a relatively "happy" ending. 150 555 14 USD f283b1b3-b763-42f9-95f0-38e1d78a1d7e 15
6 271 Catweazle Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts. 170 22 150 JPY 445a6c1e-071f-4e9d-b0bb-670ec73b0a49 13

View File

@@ -1,34 +1,43 @@
ID,parent_ID,name ID,parent_ID,name
8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,,Fiction 10,,Fiction
08467c69-4b69-4b30-bf51-998f9c4b8a12,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Action 11,10,Drama
c5247996-2516-40c5-b3ea-02492a1e1f4d,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Adventure 12,10,Poetry
d74eb118-ff57-4776-96d3-0d649278bf6b,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Drama 13,10,Fantasy
b84a7e92-cc0c-4599-8b62-9e3ae39e343f,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Poetry 131,13,Fairy Tale
445a6c1e-071f-4e9d-b0bb-670ec73b0a49,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Fantasy 132,13,Epic Fantasy
0d4f268f-c5c5-4a82-b54a-2120271cf54e,445a6c1e-071f-4e9d-b0bb-670ec73b0a49,Epic fantasy 133,13,High Fantasy
5ccfe8e7-009f-4744-91fd-c1c1e9a0c9c6,445a6c1e-071f-4e9d-b0bb-670ec73b0a49,High fantasy 134,13,Gothic
86e9f4d5-3e7c-4c06-8421-8b6d72fe9c93,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Science Fiction 14,10,Science Fiction
9f8653a2-6d6d-4fd7-b02f-b90d15d6f67f,86e9f4d5-3e7c-4c06-8421-8b6d72fe9c93,Utopian and Dystopian 141,14,Utopian and Dystopian
7c7b2c30-c24e-4627-bb84-0f9d09f9e91b,9f8653a2-6d6d-4fd7-b02f-b90d15d6f67f,Dystopia 1411,14,Utopian
34f6a939-2708-4cc0-9882-daf36a8ed5e6,7c7b2c30-c24e-4627-bb84-0f9d09f9e91b,Cyberpunk 1412,142,Dystopian
4297bff9-c4b3-4097-b68f-5605f89c6e4c,34f6a939-2708-4cc0-9882-daf36a8ed5e6,Steampunk 14121,1412,Cyberpunk
f283b1b3-b763-42f9-95f0-38e1d78a1d7e,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Romance 141211,14121,Steampunk
5d2c5060-84cf-4a94-9118-8d9ad88f2a24,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Mystery 142,14,Space Opera
7d6cc413-cf8c-4cf9-b30a-bf8cf6f97b72,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Graphic Novel 143,14,Time Travel
f846b0b9-01d4-4f6d-82a4-d79204f62576,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Thriller 144,14,Tech Noir
82f9a2d9-bd77-4cfd-9c76-d03b8f6827a3,f846b0b9-01d4-4f6d-82a4-d79204f62576,Suspense 15,10,Romance
a7b5b4d7-bff3-430d-9d7e-25fd67b66022,f846b0b9-01d4-4f6d-82a4-d79204f62576,Crime thriller 151,15,Contemporary Romance
5f93c395-6f8a-43de-84c1-bf22cfba8f56,f846b0b9-01d4-4f6d-82a4-d79204f62576,Spy thriller 152,15,Historical Romance
3ff51d9c-5ff5-421f-8d0d-d75b08e32a25,f846b0b9-01d4-4f6d-82a4-d79204f62576,Political thriller 153,15,Romantic Suspense
a530cd31-b0cf-4a32-9f28-72ee7b9f29fc,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Short Story 16,10,Mystery
5b091c64-8b4f-401a-a06d-61b19857635b,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Fairy Tale 161,16,Crime
7125da65-b3ae-4a0b-a735-1db410a3e079,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Horror 1611,161,Thriller
a02b5c9b-b79f-43ef-b2ab-28e4b431cc18,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Historical Fiction 16111,1611,Police Procedural
d6c3448e-d771-47f0-b6c7-8d2159b29d2a,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Contemporary Fiction 16112,1611,Legal Thriller
7ed5cfab-8c4d-46a3-b89b-c5b8fa74f049,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Magical Realism 16113,1611,Medical Thriller
23e86990-66d3-4488-8272-98ed056710b5,8bbf14c6-b378-4e35-9b4f-5a9c8b8762da,Literary Fiction 16114,1611,Spy Thriller
85b5a640-7e9a-468e-80e2-e9268486031b,,Non-Fiction 1612,161,Detective
10d19b1a-832b-4d60-bf9b-88dcd089db85,85b5a640-7e9a-468e-80e2-e9268486031b,Biography 1613,161,Suspense
1f1c8b5b-451e-48f6-bdbb-759be4ea1a8f,10d19b1a-832b-4d60-bf9b-88dcd089db85,Autobiography 162,16,Noir
4bc5ad4d-b7a3-47a7-9938-325c6fdf8041,85b5a640-7e9a-468e-80e2-e9268486031b,Essay 1621,162,Nordic Noir
e0d350c2-1f42-45b5-b768-67cccd997b56,85b5a640-7e9a-468e-80e2-e9268486031b,Speech 1622,162,Tart Noir
163,16,Cozy Mystery
17,10,Adventure
18,10,Short Story
19,10,Graphic Novel
20,,Non-Fiction
21,20,Biography
22,21,Autobiography
23,20,Essay
24,20,Speech
1 ID parent_ID name
2 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 10 Fiction
3 08467c69-4b69-4b30-bf51-998f9c4b8a12 11 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 10 Action Drama
4 c5247996-2516-40c5-b3ea-02492a1e1f4d 12 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 10 Adventure Poetry
5 d74eb118-ff57-4776-96d3-0d649278bf6b 13 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 10 Drama Fantasy
6 b84a7e92-cc0c-4599-8b62-9e3ae39e343f 131 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 13 Poetry Fairy Tale
7 445a6c1e-071f-4e9d-b0bb-670ec73b0a49 132 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 13 Fantasy Epic Fantasy
8 0d4f268f-c5c5-4a82-b54a-2120271cf54e 133 445a6c1e-071f-4e9d-b0bb-670ec73b0a49 13 Epic fantasy High Fantasy
9 5ccfe8e7-009f-4744-91fd-c1c1e9a0c9c6 134 445a6c1e-071f-4e9d-b0bb-670ec73b0a49 13 High fantasy Gothic
10 86e9f4d5-3e7c-4c06-8421-8b6d72fe9c93 14 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 10 Science Fiction
11 9f8653a2-6d6d-4fd7-b02f-b90d15d6f67f 141 86e9f4d5-3e7c-4c06-8421-8b6d72fe9c93 14 Utopian and Dystopian
12 7c7b2c30-c24e-4627-bb84-0f9d09f9e91b 1411 9f8653a2-6d6d-4fd7-b02f-b90d15d6f67f 14 Dystopia Utopian
13 34f6a939-2708-4cc0-9882-daf36a8ed5e6 1412 7c7b2c30-c24e-4627-bb84-0f9d09f9e91b 142 Cyberpunk Dystopian
14 4297bff9-c4b3-4097-b68f-5605f89c6e4c 14121 34f6a939-2708-4cc0-9882-daf36a8ed5e6 1412 Steampunk Cyberpunk
15 f283b1b3-b763-42f9-95f0-38e1d78a1d7e 141211 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 14121 Romance Steampunk
16 5d2c5060-84cf-4a94-9118-8d9ad88f2a24 142 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 14 Mystery Space Opera
17 7d6cc413-cf8c-4cf9-b30a-bf8cf6f97b72 143 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 14 Graphic Novel Time Travel
18 f846b0b9-01d4-4f6d-82a4-d79204f62576 144 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 14 Thriller Tech Noir
19 82f9a2d9-bd77-4cfd-9c76-d03b8f6827a3 15 f846b0b9-01d4-4f6d-82a4-d79204f62576 10 Suspense Romance
20 a7b5b4d7-bff3-430d-9d7e-25fd67b66022 151 f846b0b9-01d4-4f6d-82a4-d79204f62576 15 Crime thriller Contemporary Romance
21 5f93c395-6f8a-43de-84c1-bf22cfba8f56 152 f846b0b9-01d4-4f6d-82a4-d79204f62576 15 Spy thriller Historical Romance
22 3ff51d9c-5ff5-421f-8d0d-d75b08e32a25 153 f846b0b9-01d4-4f6d-82a4-d79204f62576 15 Political thriller Romantic Suspense
23 a530cd31-b0cf-4a32-9f28-72ee7b9f29fc 16 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 10 Short Story Mystery
24 5b091c64-8b4f-401a-a06d-61b19857635b 161 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 16 Fairy Tale Crime
25 7125da65-b3ae-4a0b-a735-1db410a3e079 1611 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 161 Horror Thriller
26 a02b5c9b-b79f-43ef-b2ab-28e4b431cc18 16111 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 1611 Historical Fiction Police Procedural
27 d6c3448e-d771-47f0-b6c7-8d2159b29d2a 16112 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 1611 Contemporary Fiction Legal Thriller
28 7ed5cfab-8c4d-46a3-b89b-c5b8fa74f049 16113 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 1611 Magical Realism Medical Thriller
29 23e86990-66d3-4488-8272-98ed056710b5 16114 8bbf14c6-b378-4e35-9b4f-5a9c8b8762da 1611 Literary Fiction Spy Thriller
30 85b5a640-7e9a-468e-80e2-e9268486031b 1612 161 Non-Fiction Detective
31 10d19b1a-832b-4d60-bf9b-88dcd089db85 1613 85b5a640-7e9a-468e-80e2-e9268486031b 161 Biography Suspense
32 1f1c8b5b-451e-48f6-bdbb-759be4ea1a8f 162 10d19b1a-832b-4d60-bf9b-88dcd089db85 16 Autobiography Noir
33 4bc5ad4d-b7a3-47a7-9938-325c6fdf8041 1621 85b5a640-7e9a-468e-80e2-e9268486031b 162 Essay Nordic Noir
34 e0d350c2-1f42-45b5-b768-67cccd997b56 1622 85b5a640-7e9a-468e-80e2-e9268486031b 162 Speech Tart Noir
35 163 16 Cozy Mystery
36 17 10 Adventure
37 18 10 Short Story
38 19 10 Graphic Novel
39 20 Non-Fiction
40 21 20 Biography
41 22 21 Autobiography
42 23 20 Essay
43 24 20 Speech

View File

@@ -17,8 +17,8 @@ describe('cap/samples - Bookshop APIs', () => {
}) })
it('serves ListOfBooks?$expand=genre,currency', async () => { it('serves ListOfBooks?$expand=genre,currency', async () => {
const Mystery = { ID: '5d2c5060-84cf-4a94-9118-8d9ad88f2a24', name: 'Mystery', descr: null, parent_ID: '8bbf14c6-b378-4e35-9b4f-5a9c8b8762da' } const Mystery = { ID: '16', name: 'Mystery', descr: null, parent_ID: '10' }
const Romance = { ID: 'f283b1b3-b763-42f9-95f0-38e1d78a1d7e', name: 'Romance', descr: null, parent_ID: '8bbf14c6-b378-4e35-9b4f-5a9c8b8762da' } const Romance = { ID: '15', name: 'Romance', descr: null, parent_ID: '10' }
const USD = { code: 'USD', name: 'US Dollar', descr: null, symbol: '$' } const USD = { code: 'USD', name: 'US Dollar', descr: null, symbol: '$' }
const { data } = await GET `/browse/ListOfBooks ${{ const { data } = await GET `/browse/ListOfBooks ${{
params: { $search: 'Po', $select: `title,author`, $expand:`genre,currency` }, params: { $search: 'Po', $select: `title,author`, $expand:`genre,currency` },