RES protocol could define a special object that is used for resource links, eg. {"rid":"orgService.org.3"}. If a property contains such a link, the gateway will fetch these resources, doing indirect subscriptions just like collections models, and return them together with the parent model in the response.
Example on get.userService.user.42 service result response:
Issue
Models currently only supports primitive properties.
To fetch a complex resource structure, you have to do it with multiple requests:
Example:
Suggested solution
RES protocol could define a special object that is used for resource links, eg.
{"rid":"orgService.org.3"}
. If a property contains such a link, the gateway will fetch these resources, doing indirect subscriptions just like collections models, and return them together with the parent model in the response.Example on
get.userService.user.42
service result response:In client: