Determine restrictions with consequences
Determines active restrictions and pre-computes consequences for all option codes. Consequences indicate which other options must change when selecting a specific code.
AuthorizationBearer <token>
In: header
Path Parameters
typeId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/types/restriction/string/determine-with-consequences" \ -H "Content-Type: application/json" \ -d '[ { "code": "string", "option": "string" } ]'{
"consequences": {
"property1": [
{
"code": "string",
"optionName": "string"
}
],
"property2": [
{
"code": "string",
"optionName": "string"
}
]
},
"restrictions": [
{
"id": "string",
"options": [
{
"allowedCodes": [
"string"
],
"optionName": "string",
"reason": "string"
}
]
}
]
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}