POST api/appform/keyvalue

Request Information

URI Parameters

None.

Body Parameters

AppFormSelect
NameDescriptionTypeAdditional information
Id

integer

None.

ModulId

integer

None.

Name

string

None.

Caption

string

None.

Description

string

None.

PageSize

integer

Required

PageIndex

integer

Required

SortField

string

None.

SortFieldDefault

string

None.

Quicksearch

string

None.

filterIsSet

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ModulId": 1,
  "Name": "sample string 1",
  "Caption": "sample string 2",
  "Description": "sample string 3",
  "PageSize": 4,
  "PageIndex": 5,
  "SortField": "sample string 6",
  "SortFieldDefault": "sample string 7",
  "Quicksearch": "sample string 8",
  "filterIsSet": true
}

application/xml, text/xml

Sample:
<AppFormSelect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <PageIndex>5</PageIndex>
  <PageSize>4</PageSize>
  <Quicksearch>sample string 8</Quicksearch>
  <SortField>sample string 6</SortField>
  <SortFieldDefault>sample string 7</SortFieldDefault>
  <filterIsSet>true</filterIsSet>
  <Caption>sample string 2</Caption>
  <Description>sample string 3</Description>
  <Id>1</Id>
  <ModulId>1</ModulId>
  <Name>sample string 1</Name>
</AppFormSelect>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AppFormSelect'.

Response Information

Resource Description

Collection of KeyValue
NameDescriptionTypeAdditional 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>