POST api/StructureContact

Request Information

URI Parameters

None.

Body Parameters

DTO_structure_contact
NameDescriptionTypeAdditional information
id_structure

integer

None.

name

string

None.

surname

string

None.

phone

string

None.

email

string

None.

stay

string

None.

message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id_structure": 1,
  "name": "sample string 1",
  "surname": "sample string 2",
  "phone": "sample string 3",
  "email": "sample string 4",
  "stay": "sample string 5",
  "message": "sample string 6"
}

application/xml, text/xml

Sample:
<DTO_structures.DTO_structure_contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <email>sample string 4</email>
  <id_structure>1</id_structure>
  <message>sample string 6</message>
  <name>sample string 1</name>
  <phone>sample string 3</phone>
  <stay>sample string 5</stay>
  <surname>sample string 2</surname>
</DTO_structures.DTO_structure_contact>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.