POST Api/Validators/Address

Request Information

URI Parameters

None.

Body Parameters

AddressViewModel
NameDescriptionTypeAdditional information
Address1

string

Required

Address2

string

None.

City

string

Required

Province

string

Required

PostalCode

string

Required

PostalCodePlus4

string

None.

Request Formats

application/json, text/json

Sample:
{
  "address1": "sample string 1",
  "address2": "sample string 2",
  "city": "sample string 3",
  "province": "sample string 4",
  "postalCode": "sample string 5",
  "postalCodePlus4": "sample string 6"
}

text/html

Sample:
{"address1":"sample string 1","address2":"sample string 2","city":"sample string 3","province":"sample string 4","postalCode":"sample string 5","postalCodePlus4":"sample string 6"}

application/xml, text/xml

Sample:
<AddressViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels.Validation">
  <Address1>sample string 1</Address1>
  <Address2>sample string 2</Address2>
  <City>sample string 3</City>
  <PostalCode>sample string 5</PostalCode>
  <PostalCodePlus4>sample string 6</PostalCodePlus4>
  <Province>sample string 4</Province>
</AddressViewModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.