POST api/moduleo/adresse

Crée une adresse postale.

Request Information

URI Parameters

None.

Body Parameters

ApiIncomingAdresse
NameDescriptionTypeAdditional information
IdAdresse

integer

None.

IdContact

integer

None.

Rue

string

Max length: 300

IdCommune

integer

None.

Lieu

string

Max length: 70

ProprietesModifiees

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "IdAdresse": 1,
  "IdContact": 1,
  "Rue": "sample string 1",
  "IdCommune": 1,
  "Lieu": "sample string 2",
  "ProprietesModifiees": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ApiIncomingAdresse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoCommunServeur.Business.Api.Incoming">
  <ProprietesModifiees xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ProprietesModifiees>
  <IdAdresse>1</IdAdresse>
  <IdCommune>1</IdCommune>
  <IdContact>1</IdContact>
  <Lieu>sample string 2</Lieu>
  <Rue>sample string 1</Rue>
</ApiIncomingAdresse>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdAdresse"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdContact"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Rue"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdCommune"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Lieu"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ProprietesModifiees[0]"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ProprietesModifiees[1]"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Retourne un ApiAdresse.

ApiAdresse
NameDescriptionTypeAdditional information
IdAdresse

Identifiant unique d'une adresse postale

integer

None.

Rue

Rue de l'adresse postale

string

None.

Lieu

Lieu de l'adresse postale

string

None.

IdCommune

Identifiant unique de la commune liée à l'adresse postale

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IdAdresse": 1,
  "Rue": "sample string 2",
  "Lieu": "sample string 3",
  "IdCommune": 4
}

application/xml, text/xml

Sample:
<ApiAdresse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api">
  <IdAdresse>1</IdAdresse>
  <IdCommune>4</IdCommune>
  <Lieu>sample string 3</Lieu>
  <Rue>sample string 2</Rue>
</ApiAdresse>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdAdresse"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Rue"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Lieu"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdCommune"

4
--MultipartDataMediaFormatterBoundary1q2w3e--