POST api/usrrole/keyvalue
Request Information
URI Parameters
None.
Body Parameters
UsrRoleSelect| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| DisplayOrder | integer |
None. |
|
| DisplayOrderFrom | integer |
None. |
|
| DisplayOrderTo | integer |
None. |
|
| Custom1 | string |
None. |
|
| Custom2 | string |
None. |
|
| PageSize | integer |
Required |
|
| PageIndex | integer |
Required |
|
| SortField | string |
None. |
|
| SortFieldDefault | string |
None. |
|
| Quicksearch | string |
None. |
|
| filterIsSet | boolean |
None. |
|
| TagIds | Collection of integer |
None. |
|
| TagFullMatch | boolean |
None. |
|
| WithTags | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"DisplayOrderFrom": 1,
"DisplayOrderTo": 1,
"Custom1": "sample string 3",
"Custom2": "sample string 4",
"PageSize": 5,
"PageIndex": 6,
"SortField": "sample string 7",
"SortFieldDefault": "sample string 8",
"Quicksearch": "sample string 9",
"filterIsSet": true,
"TagIds": [
1,
2
],
"TagFullMatch": true,
"WithTags": true
}
application/xml, text/xml
Sample:
<UsrRoleSelect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.Tools.Usr.Models">
<PageIndex xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">6</PageIndex>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">5</PageSize>
<Quicksearch xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">sample string 9</Quicksearch>
<SortField xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">sample string 7</SortField>
<SortFieldDefault xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">sample string 8</SortFieldDefault>
<TagFullMatch xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">true</TagFullMatch>
<TagIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</TagIds>
<WithTags xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">true</WithTags>
<filterIsSet xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">true</filterIsSet>
<Custom1>sample string 3</Custom1>
<Custom2>sample string 4</Custom2>
<Description>sample string 2</Description>
<DisplayOrder>1</DisplayOrder>
<DisplayOrderFrom>1</DisplayOrderFrom>
<DisplayOrderTo>1</DisplayOrderTo>
<Id>1</Id>
<Name>sample string 1</Name>
</UsrRoleSelect>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of KeyValue| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| Value | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Value": "sample string 2"
},
{
"Id": 1,
"Value": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfKeyValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
<KeyValue>
<Id>1</Id>
<Value>sample string 2</Value>
</KeyValue>
<KeyValue>
<Id>1</Id>
<Value>sample string 2</Value>
</KeyValue>
</ArrayOfKeyValue>