POST api/RoleMaster/insertRole

Request Information

URI Parameters

None.

Body Parameters

RoleMaster
NameDescriptionTypeAdditional information
RoleId

integer

None.

RoleName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleId": 1,
  "RoleName": "sample string 2"
}

application/xml, text/xml

Sample:
<RoleMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SolarDichachi">
  <RoleId>1</RoleId>
  <RoleName>sample string 2</RoleName>
</RoleMaster>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Dictionary of string [key] and Object [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": {},
  "sample string 3": {}
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringanyType>
    <Key>sample string 1</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>sample string 3</Key>
    <Value />
  </KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>