Question

Photo of Wiley Hays

0

Person location attribute

I don't find an address/ location for people. Are they accessible through the API? If so, through which endpoint and which filters or expands are needed?

  • Photo of Scott Conger

    0

    The rest endpoints are defined here:

    http://rock.rocksolidchurchdemo.com/page/244

    The entire rest code is here:

    https://github.com/SparkDevNetwork/Rock/tree/develop/Rock.Rest/Controllers

    The models are here:

    https://github.com/SparkDevNetwork/Rock/tree/develop/Rock/Model

    The person model has a "GetHomeLocation" method.

    https://github.com/SparkDevNetwork/Rock/blob/develop/Rock/Model/Person.cs

    If you need to do something more advanced than that, I'd mimic that method.  You'd have to retrieve a person, then retrieve the "family" group(s), then retrieve the locations for the families.