Adding books microservice for GE 8.6
This commit is contained in:
29
books/data/authors.js
Normal file
29
books/data/authors.js
Normal file
@@ -0,0 +1,29 @@
|
||||
const authors = [
|
||||
{
|
||||
id: 1,
|
||||
name: 'James Joyce',
|
||||
dob: 1882
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'F Scott Fitzgerald',
|
||||
dob: 1896
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: 'Aldous Huxley',
|
||||
dob: 1894
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: 'Vladimir Nabokov',
|
||||
dob: 1899
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: 'William Faulkner',
|
||||
dob: 1897
|
||||
}
|
||||
];
|
||||
|
||||
module.exports.books = authors;
|
||||
39
books/data/books.js
Normal file
39
books/data/books.js
Normal file
@@ -0,0 +1,39 @@
|
||||
const books = [
|
||||
{
|
||||
ranking: 1,
|
||||
name: 'ULYSSES',
|
||||
Author: 'James Joyce',
|
||||
country: 'Ireland',
|
||||
yearPublished: '1922'
|
||||
},
|
||||
{
|
||||
ranking: 2,
|
||||
name: 'THE GREAT GATSBY',
|
||||
Author: 'F. Scott Fitzgerald',
|
||||
country: 'USA',
|
||||
yearPublished: '1925'
|
||||
},
|
||||
{
|
||||
ranking: 3,
|
||||
name: 'A PORTRAIT OF THE ARTIST AS A YOUNG MAN',
|
||||
Author: 'James Joyce',
|
||||
country: 'Ireland',
|
||||
yearPublished: '1916'
|
||||
},
|
||||
{
|
||||
ranking: 4,
|
||||
name: 'BRAVE NEW WORLD',
|
||||
Author: 'Aldous Huxley',
|
||||
country: 'UK',
|
||||
yearPublished: '1932'
|
||||
},
|
||||
{
|
||||
ranking: 5,
|
||||
name: 'THE SOUND AND THE FURY',
|
||||
Author: 'William Faulkner',
|
||||
country: 'USA',
|
||||
yearPublished: '1929'
|
||||
}
|
||||
];
|
||||
|
||||
module.exports.books = books;
|
||||
Reference in New Issue
Block a user