POST api/Contact

Submits a contact form message and sends an email notification.

Request Information

URI Parameters

None.

Body Parameters

Contact form data including name, email, contact number, message, and callback request.

ContactDTO
NameDescriptionTypeAdditional information
Name

string

Required

Email

string

None.

CallMeBack

boolean

Required

ContactNumber

string

None.

Message

string

Required

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "email": "sample string 2",
  "callMeBack": true,
  "contactNumber": "sample string 4",
  "message": "sample string 5"
}

application/xml, text/xml

Sample:
<ContactDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <CallMeBack>true</CallMeBack>
  <ContactNumber>sample string 4</ContactNumber>
  <Email>sample string 2</Email>
  <Message>sample string 5</Message>
  <Name>sample string 1</Name>
</ContactDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response indicating whether the message was sent successfully.

ContactResponseDTO
NameDescriptionTypeAdditional information
ResponseMessage

string

None.

MessageSent

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "responseMessage": "sample string 1",
  "messageSent": true
}

application/xml, text/xml

Sample:
<ContactResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <MessageSent>true</MessageSent>
  <ResponseMessage>sample string 1</ResponseMessage>
</ContactResponseDTO>