GET api/role

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of role
NameDescriptionTypeAdditional information
id

integer

None.

name

string

Required

String length: inclusive between 0 and 50

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ArrayOfrole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Domain.Entities">
  <role>
    <id>1</id>
    <name>sample string 2</name>
  </role>
  <role>
    <id>1</id>
    <name>sample string 2</name>
  </role>
</ArrayOfrole>