Open reinaldoluckman opened 7 years ago
I solved the problem creating _embedded by myself:
model {
TrainingListResource trainingListResource
}
json {
hal.links(self: trainingListResource.selfLink)
_embedded {
trainings (trainingListResource.trainings) { TrainingElementResource t ->
hal.links(self: t.selfLink)
image t.image
name t.name
description t.description
}
}
}
But I will let open to get some direction.
Thank you in advance.
I have these three resources:
When I try to customize self links from those resources inside in a gson file (see bellow), the self link for root resource (TrainingListResource) works without problem, but, that inside hal.embedded, doesn't overwrites the plugin default. Is this a expected behavior?
The output json:
If this is a expected behavior (which is odd to me), there is someway to achieve self customization inside hal.embedded?
Thanks in advance.