POST api/Account/Roles

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RoleViewModel
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  {
    "id": "sample string 1",
    "name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfRoleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOL.WHD.Section14c.Domain.ViewModels">
  <RoleViewModel>
    <Id>sample string 1</Id>
    <Name>sample string 2</Name>
  </RoleViewModel>
  <RoleViewModel>
    <Id>sample string 1</Id>
    <Name>sample string 2</Name>
  </RoleViewModel>
</ArrayOfRoleViewModel>