我有3个模型。
计划,里程碑和行动。
Plan在Plan.json中具有许多里程碑意义
"milestones": {
"type": "hasMany",
"model": "Milestone",
"foreignKey": "",
"through": ""
}
类似地,
Milestone.Milestone.json中的EmiratesTo动作
"actions": {
"type": "belongTo",
"model": "Action",
"foreignKey": "",
"through": ""
}
我需要以下API
Plans/:planId/milestones/:milestoneId/actions
但API中仅列出了Plans/:planId/milestones
也有以下api,但我需要像上面这样的嵌套api。
Milestones/:milestoneId/actions