我想使用
获取任何用户的所有已发行书籍的列表http://localhost:3000/users/1/issuedBooks在JSON服务器中
我的JSON服务器:-
{
"users": [
{
"id": 1,
"name": "lucifer",
"password": "morningStar",
"admin": true,
"issuedBooks": [
{
"bid": 1,
"issueDate": "21/12/2012",
"renewRemaining": true
}
]
},
{
"id": 2,
"name": "harry",
"password": "potter",
"admin": false,
"issuedBooks": []
}
]
}