Retrieve all
GET/scenarios/:scenarioId/persons/:personId/assets/portfolio/:portfolioId/allocation
List all Financial Portfolios allocations in a given scenario and for a given person.
Request
Path Parameters
The scenario's id
The person's id
The portfolio'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[]
Array of custom allocation percentages, overrides profile.
Description of the resource.
The end date of the allocation. Valid date string in simplified extended ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Will be respected only in conjuction with endsOn
equals to USER_DEFINED
.
Possible values: [USER_DEFINED
, ON_RETIREMENT
, ON_DEATH
]
Can be any of USER_DEFINED, ON_RETIREMENT, ON_DEATH.
The id of the resource.
The name of the resource.
The risk profile of the portfolio.
The start date of the allocation. Valid date string in simplified extended ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Will be respected only in conjuction with startsOn
equals to USER_DEFINED
.
Possible values: [USER_DEFINED
, ON_RETIREMENT
, ON_DEATH
]
Can be any of USER_DEFINED, ON_RETIREMENT, ON_DEATH.
pageable object
sort object
sort object
{
"content": [
{
"allocation": [
0.12,
0.05,
0.12,
0.15,
0.45,
0.11,
0,
0,
0
],
"description": "My resource's description",
"endDate": "2023-07-26T12:27:29.363Z",
"endsOn": "ON_RETIREMENT",
"id": "1",
"name": "My resource",
"profile": "medium",
"startDate": "2023-07-26T12:27:29.363Z",
"startsOn": "USER_DEFINED"
}
],
"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