Test

<back to all web services

GetStuff

The following routes are available for this service:
All Verbs/Stuff
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Test.ServiceInterface;

namespace Test.ServiceInterface
{
    [DataContract(Namespace="http://schemas.servicestack.net/types")]
    public partial class GetStuff
    {
        [DataMember]
        [ApiMember(DataType="DateTime", Name="Summary Date")]
        public virtual DateTime? SummaryDate { get; set; }

        [DataMember]
        [ApiMember(DataType="DateTime", Name="Summary End Date")]
        public virtual DateTime? SummaryEndDate { get; set; }

        [DataMember]
        [ApiMember(DataType="string", Name="Symbol")]
        public virtual string Symbol { get; set; }

        [DataMember]
        [ApiMember(DataType="string", Name="Email")]
        public virtual string Email { get; set; }

        [DataMember]
        [ApiMember(DataType="bool", Name="Is Enabled")]
        public virtual bool? IsEnabled { get; set; }
    }

    [DataContract(Namespace="http://schemas.servicestack.net/types")]
    public partial class GetStuffResponse
    {
        [DataMember]
        public virtual DateTime? SummaryDate { get; set; }

        [DataMember]
        public virtual DateTime? SummaryEndDate { get; set; }

        [DataMember]
        public virtual string Symbol { get; set; }

        [DataMember]
        public virtual string Email { get; set; }

        [DataMember]
        public virtual bool? IsEnabled { get; set; }
    }

}

C# GetStuff 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 /Stuff HTTP/1.1 
Host: test.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	summaryDate: 0001-01-01,
	summaryEndDate: 0001-01-01,
	symbol: String,
	email: String,
	isEnabled: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	summaryDate: 0001-01-01,
	summaryEndDate: 0001-01-01,
	symbol: String,
	email: String,
	isEnabled: False
}