POST api/contact/sendmessage
Request Information
URI Parameters
None.
Body Parameters
MessageForm| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required |
|
| string |
Required |
||
| Message | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Email": "sample string 2",
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<MessageForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EttsWebService.Models"> <Email>sample string 2</Email> <Message>sample string 3</Message> <Name>sample string 1</Name> </MessageForm>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServiceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| ResultCode | string |
None. |
|
| Exception | Exception |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {},
"Message": "sample string 2",
"ResultCode": "sample string 3",
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
}
application/xml, text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EttsWebService.Models">
<Data />
<Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</Exception>
<Message>sample string 2</Message>
<ResultCode>sample string 3</ResultCode>
</ServiceResult>