GET api/roleapi/roles?active={active}&lastUpdate={lastUpdate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
active

boolean

None.

lastUpdate

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RoleViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

Required

active

boolean

Required

ID

globally unique identifier

None.

rights

Collection of ShortRightViewModel

None.

technical_description

string

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "active": true,
    "id": "11e52205-8d7d-482d-b665-9640e70d9d03",
    "rights": [
      {
        "code": "sample string 1",
        "id": "832c867d-bfcf-4470-bff9-a0968d3c2f22"
      },
      {
        "code": "sample string 1",
        "id": "832c867d-bfcf-4470-bff9-a0968d3c2f22"
      }
    ],
    "technical_description": "sample string 3"
  },
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "active": true,
    "id": "11e52205-8d7d-482d-b665-9640e70d9d03",
    "rights": [
      {
        "code": "sample string 1",
        "id": "832c867d-bfcf-4470-bff9-a0968d3c2f22"
      },
      {
        "code": "sample string 1",
        "id": "832c867d-bfcf-4470-bff9-a0968d3c2f22"
      }
    ],
    "technical_description": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfrole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <role>
    <ID>11e52205-8d7d-482d-b665-9640e70d9d03</ID>
    <active>true</active>
    <rights>
      <right>
        <ID>832c867d-bfcf-4470-bff9-a0968d3c2f22</ID>
        <code>sample string 1</code>
      </right>
      <right>
        <ID>832c867d-bfcf-4470-bff9-a0968d3c2f22</ID>
        <code>sample string 1</code>
      </right>
    </rights>
    <technical_description>sample string 3</technical_description>
    <descriptions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </descriptions>
  </role>
  <role>
    <ID>11e52205-8d7d-482d-b665-9640e70d9d03</ID>
    <active>true</active>
    <rights>
      <right>
        <ID>832c867d-bfcf-4470-bff9-a0968d3c2f22</ID>
        <code>sample string 1</code>
      </right>
      <right>
        <ID>832c867d-bfcf-4470-bff9-a0968d3c2f22</ID>
        <code>sample string 1</code>
      </right>
    </rights>
    <technical_description>sample string 3</technical_description>
    <descriptions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </descriptions>
  </role>
</ArrayOfrole>