Example for odrl:constraint needed #559
-
Provided by @ds-mwesener Hello, does somebody has a link to an example of how the odrl:constraint object in the PolicyDefinitionRequest looks like? Swagger API / Postman Collection do not show an example. (EDC 0.4.1) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
provided by @wolf4ood On the latest postman collection there is an example how to create a policy with a constraint |
Beta Was this translation helpful? Give feedback.
-
This is just copy & paste from the postmancolllection. Does it help? @ds-mwesener {
"@context": {
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"@type": "PolicyDefinitionRequestDto",
"@id": "{{POLICY_ID}}",
"policy": {
"@type": "Policy",
"odrl:permission" : [{
"odrl:action" : "USE",
"odrl:constraint" : {
"@type": "LogicalConstraint",
"odrl:or" : [{
"@type" : "Constraint",
"odrl:leftOperand" : "BusinessPartnerNumber",
"odrl:operator" : {
"@id": "odrl:eq"
},
"odrl:rightOperand" : "{{POLICY_BPN}}"
}]
}
}]
}
} |
Beta Was this translation helpful? Give feedback.
This is just copy & paste from the postmancolllection. Does it help? @ds-mwesener