Geniuslink.MarkableApi

<back to all web services

Hello

The following routes are available for this service:
All Verbs/hello
All Verbs/hello/{Name}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class Hello implements IHasVersion
    {
        public String name = null;
        public Integer version = null;
        
        public String getName() { return name; }
        public Hello setName(String value) { this.name = value; return this; }
        public Integer getVersion() { return version; }
        public Hello setVersion(Integer value) { this.version = value; return this; }
    }

    public static class HelloResponse extends BaseResponse
    {
        public HelloResponseData data = null;
        
        public HelloResponseData getData() { return data; }
        public HelloResponse setData(HelloResponseData value) { this.data = value; return this; }
    }

    @DataContract
    public static class BaseResponse
    {
        @DataMember(Name="responseStatus")
        @SerializedName("responseStatus")
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public BaseResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class HelloResponseData
    {
        public String greeting = null;
        
        public String getGreeting() { return greeting; }
        public HelloResponseData setGreeting(String value) { this.greeting = value; return this; }
    }

}

Java Hello 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 /hello HTTP/1.1 
Host: geniuslink-markable-api.qa.platform.georiot.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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