Resource API
Name | Type | Description | Example |
---|---|---|---|
resourcesAllowed | array | List of allowed resources | ["urn:ews:product:instance:example/resource1"] |
Get authorized resources according selected action and resources
POST /api/v1/resource
Name | Type | Description | Example |
---|---|---|---|
action | string | Action applied over the resources | "example:Read" |
resources | array | List of resources | ["urn:ews:product:instance:example/resource1"] |
$ curl -n -X POST /api/v1/resource \
-d '{
"action": "example:Read",
"resources": [
"urn:ews:product:instance:example/resource1"
]
}' \
-H "Content-Type: application/json" \
-H "Authorization: Basic or Bearer XXX"
HTTP/1.1 200 OK
{
"resourcesAllowed": [
"urn:ews:product:instance:example/resource1"
]
}