今天有一个模型,这个模型有一些孩子:
{
"_embedded": {
"emailTemplates": [
{
"identifier": "XPTO",
"message": "Email whatever",
"active": true,
"_links": {
"self": {
"href": "http://localhost:8080/emailTemplates/1"
},
"communicationChannel": {
"href": "http://localhost:8080/emailTemplates/1/communicationChannel"
}
}
}
]
},
"_links": {
"self": {
"href": "http://localhost:8080/emailTemplates"
},
"profile": {
"href": "http://localhost:8080/profile/emailTemplates"
}
}
}
看看communicationChannel返回链接父对子。 我需要一些提示,直接向孩子返回链接,如:
"communicationChannel": {
"href": "http://localhost:8080/communicationChannel/1"
}
我该如何解决?