我很难理解 Siesta 如何找出资源的孩子。例如,我有以下事件资源:
“/events”返回的 JSON
{
"success": 1,
"events": [
{
"id": 1,
"type": "meeting",
"eventDate": "2015-08-20",
"notes": "fadsfasfa",
"title": null
},{
"id": 2,
"type": "game",
"eventDate": "2015-08-31",
"notes": "fdsafdf",
"title": null
}
]
}
遗憾的是,例如,调用“/events/1”不会返回 id=2 的事件。有没有办法告诉 Siesta 哪个事件的 id=2?