POST api/City/GetStartCityName

Request Information

URI Parameters

None.

Body Parameters

Citytuniu
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

ParentID

integer

None.

CodeLevel

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "ParentID": 3,
  "CodeLevel": 4
}

application/xml, text/xml

Sample:
<Citytuniu xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Isonfor.ECommerce.Common.Entity">
  <CodeLevel>4</CodeLevel>
  <ID>1</ID>
  <Name>sample string 2</Name>
  <ParentID>3</ParentID>
</Citytuniu>

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 'Citytuniu'.

Response Information

Resource Description

ExecuteResultOfCitytuniu
NameDescriptionTypeAdditional information
Data

Citytuniu

None.

Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "ID": 1,
    "Name": "sample string 2",
    "ParentID": 3,
    "CodeLevel": 4
  },
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 3",
  "Code": 4,
  "StatusCode": "sample string 5",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ExecuteResultOfCitytuniuk9VTtWam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>4</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 3</Msg>
  <StatusCode>sample string 5</StatusCode>
  <Success>true</Success>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Isonfor.ECommerce.Common.Entity">
    <d2p1:CodeLevel>4</d2p1:CodeLevel>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:ParentID>3</d2p1:ParentID>
  </Data>
</ExecuteResultOfCitytuniuk9VTtWam>