GET api/Roles/GetEntityTypeRoles?entityCode={entityCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| entityCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ServiceValidationResultOfIEnumerableOfListItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Item | Collection of ListItem |
None. |
|
| Success | boolean |
None. |
|
| ChangesFound | boolean |
None. |
|
| Pending | boolean |
None. |
|
| Errors | Collection of ItemValidation |
None. |
Response Formats
application/json, text/json
Sample:
{
"Item": [
{
"GuidIdentity": "b2b48cfa-7acb-4611-b9d8-eef1d93a3e13",
"Code": "sample string 1",
"Name": "sample string 2",
"Tag": "sample string 3",
"IsInUse": true
},
{
"GuidIdentity": "b2b48cfa-7acb-4611-b9d8-eef1d93a3e13",
"Code": "sample string 1",
"Name": "sample string 2",
"Tag": "sample string 3",
"IsInUse": true
}
],
"Success": true,
"ChangesFound": true,
"Pending": true,
"Errors": [
{
"FieldName": "sample string 1",
"Message": "sample string 2"
},
{
"FieldName": "sample string 1",
"Message": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<ServiceValidationResultOfArrayOfListItemCXehwsVp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models.Entities">
<ChangesFound>true</ChangesFound>
<Errors>
<ItemValidation>
<FieldName>sample string 1</FieldName>
<Message>sample string 2</Message>
</ItemValidation>
<ItemValidation>
<FieldName>sample string 1</FieldName>
<Message>sample string 2</Message>
</ItemValidation>
</Errors>
<Pending>true</Pending>
<Success>true</Success>
<Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models">
<d2p1:ListItem>
<d2p1:Code>sample string 1</d2p1:Code>
<d2p1:GuidIdentity>b2b48cfa-7acb-4611-b9d8-eef1d93a3e13</d2p1:GuidIdentity>
<d2p1:IsInUse>true</d2p1:IsInUse>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Tag>sample string 3</d2p1:Tag>
</d2p1:ListItem>
<d2p1:ListItem>
<d2p1:Code>sample string 1</d2p1:Code>
<d2p1:GuidIdentity>b2b48cfa-7acb-4611-b9d8-eef1d93a3e13</d2p1:GuidIdentity>
<d2p1:IsInUse>true</d2p1:IsInUse>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Tag>sample string 3</d2p1:Tag>
</d2p1:ListItem>
</Item>
</ServiceValidationResultOfArrayOfListItemCXehwsVp>