Retrieve all
GET/scenarios/:scenarioId/persons/:personId/insurances/mortgage-life
List all mortgage life insurance policies a person currently holds.
Request
Path Parameters
scenarioId stringrequired
The scenario's id
personId stringrequired
The person's id
Query Parameters
page integer
Zero-based page index (0..N)
size integer
Default value: 20
The size of the page to be returned
sort string[]
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 string
Description of the resource.
id string
The id of the resource.
joint booleanrequired
Whether this insurance is joint (insures both parthers).
mortgageId stringrequired
The mortgage id that this life insurance associates.
name string
The name of the resource.
properties object
Properties of the resource.
property name* object
Properties of the resource.
empty boolean
first boolean
last boolean
number int32
numberOfElements int32
pageable object
offset int64
pageNumber int32
pageSize int32
paged boolean
sort object
empty boolean
sorted boolean
unsorted boolean
unpaged boolean
size int32
sort object
empty boolean
sorted boolean
unsorted boolean
totalElements int64
totalPages int32
{
"content": [
{
"description": "My resource's description",
"id": "1",
"joint": true,
"mortgageId": "string",
"name": "My resource",
"properties": {
"property_1": "Value of property 1",
"property_2": "Value of property 2"
}
}
],
"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
Loading...