Server

<back to all web services

SmtpConfigCert

Requires Authentication
The following routes are available for this service:
POST/files/Certificate
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp;
using Eras2Web.Service.Desktop.Server.ServiceModel.Enums;

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Enums
{
    public enum SecurityType
    {
        Ssl,
        Tls,
        Certificate,
    }

}

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp
{
    [DataContract]
    public partial class SmtpConfig
    {
        [DataMember(Name="Host")]
        public virtual string Host { get; set; }

        [DataMember(Name="Port")]
        public virtual string Port { get; set; }

        [DataMember(Name="SecurityType")]
        public virtual SecurityType SecurityType { get; set; }

        [DataMember(Name="Username")]
        public virtual string Username { get; set; }

        [DataMember(Name="Password")]
        public virtual string Password { get; set; }

        [DataMember(Name="SmtpFromEmail")]
        public virtual string SmtpFromEmail { get; set; }
    }

    [DataContract]
    public partial class SmtpConfigCert
        : SmtpConfig
    {
        [DataMember(Name="SecurityType")]
        public virtual SecurityType SecurityType { get; set; }
    }

    public partial class SmtpConfigResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# SmtpConfigCert DTOs

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

HTTP + JSV

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: develop-servdesk.eras-online.de 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

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