Geniuslink.MarkableApi

<back to all web services

Hello

The following routes are available for this service:
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; }
    }

}

C# Hello DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"name":"String","version":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}