GET api/cogeo/contact/{idContact}

Récupère un contact en fonction de son identifiant unique.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idContact

Identifiant unique du contact

integer

Required

Body Parameters

None.

Response Information

Resource Description

Retourne un ApiContact.

ApiContact
NameDescriptionTypeAdditional information
IdContact

Identifiant du contact

integer

None.

Nom

Dénomination du contact

string

None.

TypeContact

Type de contact

TypesContact

None.

Response Formats

application/json, text/json

Sample:
{
  "IdContact": 1,
  "Nom": "sample string 2",
  "TypeContact": 1
}

application/xml, text/xml

Sample:
<ApiContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api">
  <IdContact>1</IdContact>
  <Nom>sample string 2</Nom>
  <TypeContact>Personne</TypeContact>
</ApiContact>

multipart/form-data

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

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

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

Personne
--MultipartDataMediaFormatterBoundary1q2w3e--