POST api/Contact
Request Information
URI Parameters
None.
Body Parameters
ContactDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required |
|
| 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
ContactResponseDTO| Name | Description | Type | Additional 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>