POST api/CommunityV720/SubmitOrdered

提交点单

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.SubmitOrderedEntity
NameDescriptionTypeAdditional information
newspapergroupId

integer

None.

streetId

街道Id

integer

None.

name

点单人姓名

string

None.

phone

点单人电话

string

None.

orderedServiceType

点单服务类型

integer

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "newspapergroupId": 1,
  "streetId": 2,
  "name": "sample string 3",
  "phone": "sample string 4",
  "orderedServiceType": 5,
  "sign": "sample string 6",
  "stamp": "sample string 7"
}

application/xml, text/xml

Sample:
<SubmitOrderedEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <name>sample string 3</name>
  <newspapergroupId>1</newspapergroupId>
  <orderedServiceType>5</orderedServiceType>
  <phone>sample string 4</phone>
  <sign>sample string 6</sign>
  <stamp>sample string 7</stamp>
  <streetId>2</streetId>
</SubmitOrderedEntity>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ZaiMieApp.WebApi.ViewModel.SubmitOrderedEntity'.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultMsg
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

addcoin

赠送的金币

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "code": 2,
  "addcoin": 3,
  "message": "sample string 4"
}

application/xml, text/xml

Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <addcoin>3</addcoin>
  <code>2</code>
  <message>sample string 4</message>
  <success>true</success>
</ResultMsg>