POST api/User/EditAddressDefaultOrDel

Request Information

URI Parameters

None.

Body Parameters

UserAddressParam
NameDescriptionTypeAdditional information
Id

integer

None.

IsDefault

boolean

None.

Province

string

None.

Capital

string

None.

City

string

None.

Address

string

None.

Name

string

None.

Phone

string

None.

AreaCode

string

None.

IsDel

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IsDefault": true,
  "Province": "sample string 3",
  "Capital": "sample string 4",
  "City": "sample string 5",
  "Address": "sample string 6",
  "Name": "sample string 7",
  "Phone": "sample string 8",
  "AreaCode": "sample string 9",
  "IsDel": true
}

application/xml, text/xml

Sample:
<UserAddressParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ti.WebApi.Models.Params">
  <Address>sample string 6</Address>
  <AreaCode>sample string 9</AreaCode>
  <Capital>sample string 4</Capital>
  <City>sample string 5</City>
  <Id>1</Id>
  <IsDefault>true</IsDefault>
  <IsDel>true</IsDel>
  <Name>sample string 7</Name>
  <Phone>sample string 8</Phone>
  <Province>sample string 3</Province>
</UserAddressParam>

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

Response Information

Resource Description

JsonResult
NameDescriptionTypeAdditional information
ContentEncoding

Encoding

None.

ContentType

string

None.

Data

Object

None.

JsonRequestBehavior

JsonRequestBehavior

None.

MaxJsonLength

integer

None.

RecursionLimit

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ContentEncoding": null,
  "ContentType": "sample string 1",
  "Data": {},
  "JsonRequestBehavior": 0,
  "MaxJsonLength": 1,
  "RecursionLimit": 1
}

application/xml, text/xml

Sample:
<JsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
  <ContentEncoding xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Text" i:nil="true" />
  <ContentType>sample string 1</ContentType>
  <Data />
  <JsonRequestBehavior>AllowGet</JsonRequestBehavior>
  <MaxJsonLength>1</MaxJsonLength>
  <RecursionLimit>1</RecursionLimit>
</JsonResult>