GET api/rightapi/mainRights?active={active}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
active

boolean

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RightViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

Required

active

boolean

Required

code

string

Required

for_material

boolean

Required

ID

globally unique identifier

None.

type

globally unique identifier

None.

main_right

globally unique identifier

None.

technical_description

string

Required

String length: inclusive between 0 and 100

position

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "active": true,
    "code": "sample string 2",
    "for_material": true,
    "id": "eb3adb2e-2d55-4d7b-beeb-2ba062b4ee43",
    "type": "3ca9897e-6a06-43cf-bebb-0b0b41a81fb4",
    "main_right": "17b51c7e-2665-455f-96b8-e6162ccfa884",
    "technical_description": "sample string 5",
    "position": 1
  },
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "active": true,
    "code": "sample string 2",
    "for_material": true,
    "id": "eb3adb2e-2d55-4d7b-beeb-2ba062b4ee43",
    "type": "3ca9897e-6a06-43cf-bebb-0b0b41a81fb4",
    "main_right": "17b51c7e-2665-455f-96b8-e6162ccfa884",
    "technical_description": "sample string 5",
    "position": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfright xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <right>
    <ID>eb3adb2e-2d55-4d7b-beeb-2ba062b4ee43</ID>
    <active>true</active>
    <code>sample string 2</code>
    <for_material>true</for_material>
    <main_right>17b51c7e-2665-455f-96b8-e6162ccfa884</main_right>
    <position>1</position>
    <technical_description>sample string 5</technical_description>
    <type>3ca9897e-6a06-43cf-bebb-0b0b41a81fb4</type>
    <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>
  </right>
  <right>
    <ID>eb3adb2e-2d55-4d7b-beeb-2ba062b4ee43</ID>
    <active>true</active>
    <code>sample string 2</code>
    <for_material>true</for_material>
    <main_right>17b51c7e-2665-455f-96b8-e6162ccfa884</main_right>
    <position>1</position>
    <technical_description>sample string 5</technical_description>
    <type>3ca9897e-6a06-43cf-bebb-0b0b41a81fb4</type>
    <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>
  </right>
</ArrayOfright>