POST api/Bas/CreateDict
CreateDict
Request Information
URI Parameters
None.
Body Parameters
CreateDictCommand| Name | Description | Type | Additional information |
|---|---|---|---|
| DictName | string |
None. |
|
| DictValue | integer |
None. |
|
| IsDefault | integer |
None. |
|
| CategoryId | string |
None. |
|
| DictDesc | string |
None. |
|
| Status | integer |
None. |
|
| DispOrder | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"DictName": "sample string 1",
"DictValue": 2,
"IsDefault": 3,
"CategoryId": "sample string 4",
"DictDesc": "sample string 5",
"Status": 6,
"DispOrder": 7
}
text/xml
Sample:
<CreateDictCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Bas.Commands"> <CategoryId>sample string 4</CategoryId> <DictDesc>sample string 5</DictDesc> <DictName>sample string 1</DictName> <DictValue>2</DictValue> <DispOrder>7</DispOrder> <IsDefault>3</IsDefault> <Status>6</Status> </CreateDictCommand>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServiceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| RetCode | integer |
None. |
|
| Msg | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"RetCode": 1,
"Msg": "sample string 2",
"Result": {}
}
text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking"> <Msg>sample string 2</Msg> <Result /> <RetCode>1</RetCode> </ServiceResult>