David7661654
Posts: 0
Joined: Sun Jul 26, 2015 9:18 am

Populate RESTservice JSON result into model local storage

Hello,

I have a web-service that returns a user's allowed groups, where each group contains the group id, the group name and the relevant services linked to that group. The services themselves contain their ids and their names.

Each user can have a different number of groups and each group can have a different number of services in it.

It looks like this:
Image

I created 2 models (hopefully, they are correctly formatted):
Image

How do I configure the RESTservice response to load the result of the webservice into locaStorage variables that are defined as these models?
Image

Thanks,

David

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Populate RESTservice JSON result into model local storage

Hi David,
As i see yours models should looks like this -
Image

Return to “Issues”