This project was bootstrapped with Create React App & typicode/json-server
npm install
& npm start
{
"posts": [
{
"id": 1,
"title": "this is the first element on the collection",
"authorId": 1
},
{
"id": 2,
"title": "And now time for a second one...",
"authorId": 2
},
{
"id": 3,
"title": "... and the last one.",
"authorId": 1
}
],
"authors": [
{
"id": 1,
"name": "Santiago Camelo",
"email": "[email protected]"
},
{
"id": 2,
"name": "Pepe Trueno",
"email": "[email protected]"
}
]
}
http://localhost:4000/authors?_embed=post