POST | /public/contactus |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using AlbaApi.ServiceModel;
namespace AlbaApi.ServiceModel
{
public partial class PublicContactUsDetails
{
public virtual string Name { get; set; }
public virtual string CprNumber { get; set; }
public virtual string EmailAddress { get; set; }
public virtual string PhoneNumber { get; set; }
public virtual string ProductId { get; set; }
public virtual string Subject { get; set; }
public virtual string Message { get; set; }
public virtual string Address { get; set; }
public virtual string ToRecipients { get; set; }
public virtual string CcRecipients { get; set; }
public virtual string BccRecipients { get; set; }
}
public partial class PublicContactUsPostRequest
{
public virtual PublicContactUsDetails ContactDetails { get; set; }
}
}
C# PublicContactUsPostRequest 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 /public/contactus HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
contactDetails:
{
name: String,
cprNumber: String,
emailAddress: String,
phoneNumber: String,
productId: String,
subject: String,
message: String,
address: String,
toRecipients: String,
ccRecipients: String,
bccRecipients: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length False