| POST | /files/Tls |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Enums
Namespace Global
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Enums
Public Enum SecurityType
Ssl
Tls
Certificate
End Enum
End Namespace
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp
<DataContract>
Public Partial Class SmtpConfig
<DataMember(Name:="Host")>
Public Overridable Property Host As String
<DataMember(Name:="Port")>
Public Overridable Property Port As String
<DataMember(Name:="SecurityType")>
Public Overridable Property SecurityType As SecurityType
<DataMember(Name:="Username")>
Public Overridable Property Username As String
<DataMember(Name:="Password")>
Public Overridable Property Password As String
<DataMember(Name:="SmtpFromEmail")>
Public Overridable Property SmtpFromEmail As String
End Class
Public Partial Class SmtpConfigResponse
Public Overridable Property ResponseStatus As ResponseStatus
End Class
<DataContract>
Public Partial Class SmtpConfigTls
Inherits SmtpConfig
<DataMember(Name:="SecurityType")>
Public Overridable Property SecurityType As SecurityType
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /files/Tls HTTP/1.1
Host: heat-syke-servdesk.eras-online.de
Accept: application/json
Content-Type: application/json
Content-Length: length
{"SecurityType":"Ssl","Host":"String","Port":"String","Username":"String","Password":"String","SmtpFromEmail":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}