APIs
This section covers the details of the APIs supported by Entitlement microservices.
Business APIs
GET/party/customers/userIds/{userId}/entitlements
http://localhost:8095/ms-entitlement-api/api/v1.0.0/party/customers/userIds/{userId}/entitlements[
{
"resourceName": "string",
"entitlements": [
"string"
]
}
]
GET/system/entitlements/users/{userId}
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/users/{userId}{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
GET/system/entitlements/users/{userId}/actions
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/users/{userId}/actions{
"entitlements": [
{
"resourceId": "string",
"roles": [
{
"role": "string",
"actions": [
"string",
"string",
"string",
"string"
]
}
]
}
]
}
Managment APIs
There are eleven APIs to the management part. The main functionality is to manage the CRUD operations in the entitlements database.
POST/system/entitlements/{userId}/resources/{resourceId}
http://localhost:8080/ms-campaign-api/api/v1.0.0/system/entitlements/{userId}/resources/{resourceId}{
"entitlements": [
{
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
},{
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
},
{
"userId": "string",
"resourceId": "string",
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
GET/system/entitlements/{userId}/resources/{resourceId}
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/{userId}/resources/{resourceId}{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
PUT/system/entitlements/users/{userId}/resources/{resourceId}
http://localhost:8080/ms-campaign-api/api/v1.0.0/system/entitlements/users/{userId}/resources/{resourceId}{
"entitlements": [
{
"mode": "add",
"roles": [
"string"
]
},
{
"mode": "rem",
"roles": [
"string"
]
}
],
"channelid":"string",
"customfilterid":"string",
"serviceid":"string"
}
{
"entitlements": [
{
"roles": [
"string"
]
}
]
}
DELETE/system/entitlements/{userId}/resources/{resourceId}
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/{userId}/resources/{resourceId}{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
POST/system/entitlements/resources/{resourceId}
http://localhost:8080/ms-campaign-api/api/v1.0.0/system/entitlements/resources/{resourceId}{
"entitlements": [
{
"userId": "string",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"roles": [
"string"
],
"resourceCategory": "string"
}
]
}
{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"roles": [
"string"
],
"resourceCategory": "string"
}
]
}
PUT/system/entitlements/resources/{resourceId}
http://localhost:8080/ms-campaign-api/api/v1.0.0/system/entitlements/resources/{resourceId}{
"entitlements": [
{
"userId": "string",
"roles": [
{
"mode": "add",
"roles": [
"string"
]
},{
"mode": "rem",
"roles": [
"string"
]
}
],
"resourceCategory": "string",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string"
}
]
}
{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
{
"roles": [
"string"
]
}
],
"resourceCategory": "string",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string"
}
]
}
DELETE/system/entitlements/resources/{resourceId}
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/{resourceId}{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"test"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
GET/system/entitlements/resources/{resourceId}
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/{resourceId}{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"test"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "string"
}
]
}
POST/system/entitlements/users/{userId}:
http://localhost:8080/ms-campaign-api/api/v1.0.0/system/entitlements/users/{userId}:{
"entitlements": [
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"resourceId": "string",
"roles": [
"string"
],
"resourceCategory": "string"
},{
"roles": [
"string",
"string"
],
"resourceCategory": "string",
"resourceFilter": "string"
}
]
}
]
}
{
"entitlements": [
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"string"
],
"resourceCategory": "string"
}
]
},
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"userId": "string",
"roles": [
"string",
"string"
],
"resourceCategory": "string",
"resourceFilter": "string"
}
]
}
]
}
PUT/system/entitlements/users/{userId}:
http://localhost:8080/ms-campaign-api/api/v1.0.0/system/entitlements/users/{userId}:{
"entitlements": [
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"resourceId": "string",
"mode": "string",
"roles": [
"test"
],
"resourceCategory": "string"
}
]
}
]
}
{
"entitlements": [
{
"userId": "string",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"resourceId": "string",
"roles": [
"string",
"string"
],
"resourceCategory": "string"
}
]
}
]
}
DELETE/system/entitlements/users/{userId}:
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/users/{userId}:{
"entitlements": [
{
"userId": "string",
"resourceId": "string",
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "current"
},
{
"userId": "string",
"roles": [
"string",
"string"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "current",
"resourceFilter": "string"
}
]
}
GET/system/entitlements/resources/users/{userId}
http://localhost:8095/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/users/{userId}{
"entitlementResource": [
{
"resourcecategories": [
"string"
],
"roleId": [
"string"
],
"resources": [
"string"
],
"resourcefilters.customerId": [
"string"
]
}
]
}
In this topic