POST api/userAddresses

Request Information

URI Parameters

None.

Body Parameters

userAddress
NameDescriptionTypeAdditional information
userId

integer

None.

country

string

None.

city

string

None.

street

string

None.

number

string

None.

zip

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "country": "sample string 2",
  "city": "sample string 3",
  "street": "sample string 4",
  "number": "sample string 5",
  "zip": "sample string 6"
}

application/xml, text/xml

Sample:
<userAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mustCnoAuth">
  <city>sample string 3</city>
  <country>sample string 2</country>
  <number>sample string 5</number>
  <street>sample string 4</street>
  <userId>1</userId>
  <zip>sample string 6</zip>
</userAddress>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

userAddress
NameDescriptionTypeAdditional information
userId

integer

None.

country

string

None.

city

string

None.

street

string

None.

number

string

None.

zip

string

None.

Response Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "country": "sample string 2",
  "city": "sample string 3",
  "street": "sample string 4",
  "number": "sample string 5",
  "zip": "sample string 6"
}

application/xml, text/xml

Sample:
<userAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mustCnoAuth">
  <city>sample string 3</city>
  <country>sample string 2</country>
  <number>sample string 5</number>
  <street>sample string 4</street>
  <userId>1</userId>
  <zip>sample string 6</zip>
</userAddress>