| POST | /notification/send-incomplete-resubmittable-form-email/ |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BctNotification.ServiceModel.Requests.Hangfire
Imports BctNotification.ServiceModel.Types
Namespace Global
Namespace BctNotification.ServiceModel.Requests.Hangfire
<ApiResponse(Description:="Unauthorized.", StatusCode:=401)>
<ApiResponse(Description:="Forbidden.", StatusCode:=403)>
<ApiResponse(Description:="Bad Request.", StatusCode:=400)>
<ApiResponse(Description:="Internal Server Error.", StatusCode:=500)>
Public Partial Class SendIncompleteResubmittableFormEmail
End Class
Public Partial Class SendIncompleteResubmittableFormEmailResponse
Public Sub New()
ToAddresses = New List(Of EmailAddress)
CcAddresses = New List(Of EmailAddress)
BccAddresses = New List(Of EmailAddress)
End Sub
Public Overridable Property IncompleteResubmittabFormCount As Nullable(Of Integer)
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Result As String
Public Overridable Property Subject As String
Public Overridable Property ToAddresses As List(Of EmailAddress)
Public Overridable Property CcAddresses As List(Of EmailAddress)
Public Overridable Property BccAddresses As List(Of EmailAddress)
Public Overridable Property FromAddress As EmailAddress
End Class
End Namespace
Namespace BctNotification.ServiceModel.Types
Public Partial Class EmailAddress
Public Overridable Property DisplayName As String
Public Overridable Property Address As String
End Class
End Namespace
End Namespace
VB.NET SendIncompleteResubmittableFormEmail DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /notification/send-incomplete-resubmittable-form-email/ HTTP/1.1
Host: notifications.breastcancertrials.org.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
incompleteResubmittabFormCount: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
result: String,
subject: String,
toAddresses:
[
{
displayName: String,
address: String
}
],
ccAddresses:
[
{
displayName: String,
address: String
}
],
bccAddresses:
[
{
displayName: String,
address: String
}
],
fromAddress:
{
displayName: String,
address: String
}
}