Server

<back to all web services

SmtpConfigCert

Requires Authentication
The following routes are available for this service:
POST/files/Certificate
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

        <DataContract>
        Public Partial Class SmtpConfigCert
            Inherits SmtpConfig
            <DataMember(Name:="SecurityType")>
            Public Overridable Property SecurityType As SecurityType
        End Class

        Public Partial Class SmtpConfigResponse
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET SmtpConfigCert DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /files/Certificate HTTP/1.1 
Host: depolt-servdesk.eras-online.de 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SecurityType":"Ssl","Host":"String","Port":"String","Username":"String","Password":"String","SmtpFromEmail":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}