Question

Photo of Wiley Hays

0

Data in "empty arrays"

Is there a way to access the data shown as an empty array? For example, in ...churchdemo.com/api/people, PhoneNumbers is listed but the information can't be directly accessed. PhoneNumbers has it's own rest route, but doesn't include the person's name when accessed from there. It would be nice to see the person's name and phone number in the same get request. Is this a bug, or is there a way to "include" the data stored in the empty array, from within People? 

  • Photo of Jon Edmiston

    0

    You can add additional info to the response using the $expand oData keyword.  Example: rock.rocksolidchurchdemo.com/api/people?$expand=PhoneNumbers

    OData is really powerful.  Mike did a great job presenting about it here (http://www.rockrms.com/page/513?Item=80).

    Hope this helps.

  • Photo of Wiley Hays

    0

    That's what I missed. Thanks Jon! I'll go watch that video again.