Retrieve all persons belonging to a given department. Non admin users get the minimal person payload, the same one the person list route returns them.
GET
/data/departments/{department_id}/persons
curl \
--request GET 'http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c250/persons' \
--header "Authorization: $API_KEY"
Response examples (200)
[
{
"id": "a24a6ea4-ce75-4665-a070-57453082c250",
"first_name": "John",
"last_name": "Doe",
"departments": [
"b35b7fb5-df86-5776-b181-68564193d360"
]
}
]