| All Verbs | /hello | ||
|---|---|---|---|
| All Verbs | /hello/{Name} |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Geniuslink.MarkableApi.ServiceModel;
namespace Geniuslink.MarkableApi.ServiceModel
{
[DataContract]
public partial class BaseResponse
{
[DataMember(Name="responseStatus")]
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class Hello
: IHasVersion
{
public virtual string Name { get; set; }
public virtual int Version { get; set; }
}
public partial class HelloResponse
: BaseResponse
{
public virtual HelloResponseData Data { get; set; }
}
public partial class HelloResponseData
{
public virtual string Greeting { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /hello HTTP/1.1
Host: geniuslink-markable-api.qa.platform.georiot.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"name":"String","version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"data":{"greeting":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}