Retrieve all
GET/scenarios/:scenarioId/persons
Retrieve all Persons
Request
Path Parameters
The scenario's id
Query Parameters
Zero-based page index (0..N)
Default value: 20
The size of the page to be returned
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
content object[]
Description of the resource.
Possible values: [UNSPECIFIED
, MALE
, FEMALE
, TRANS_MALE
, TRANS_FEMALE
, OTHER_MALE
, OTHER_FEMALE
, OTHER
]
The person's gender (any of UNSPECIFIED, MALE, FEMALE, TRANS_MALE, TRANS_FEMALE, OTHER_MALE, OTHER_FEMALE, OTHER).
Possible values: [CRITICALLY_ILL
, ILL
, LONG_TERM_CARE
, DISABLED
, POOR
, SMOKER
, AVERAGE
, GOOD
, EXCELLENT
]
The health status (any of CRITICALLY_ILL, ILL, LONG_TERM_CARE, DISABLED, POOR, SMOKER, AVERAGE, GOOD, EXCELLENT).
The id of the resource.
The person's last name.
Possible values: [UNSPECIFIED
, SINGLE
, ENGAGED
, MARRIED
, WIDOWED
, SEPARATED
, DIVORCED
, IN_A_RELATIONSHIP
, IN_A_CIVIL_UNION
, IN_A_DOMESTIC_PARTNERSHIP
]
The marital status (any of UNSPECIFIED, SINGLE, ENGAGED, MARRIED, WIDOWED, SEPARATED, DIVORCED, IN_A_RELATIONSHIP, IN_A_CIVIL_UNION, IN_A_DOMESTIC_PARTNERSHIP).
The name of the resource.
Is this person the primary of this household?
properties object
Properties of the resource.
Properties of the resource.
The year of birth.
pageable object
sort object
sort object
{
"content": [
{
"description": "My resource's description",
"gender": "MALE",
"healthStatus": "EXCELLENT",
"id": "1",
"lastName": "Smith",
"maritalStatus": "MARRIED",
"name": "My resource",
"primary": true,
"properties": {
"property_1": "Value of property 1",
"property_2": "Value of property 2"
},
"yearOfBirth": 1980
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}
Not Found
Internal Server Error