GET | /host/version |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BrowseVersionInfo implements IGet
{
}
public static class BrowseVersionInfoResponse extends ResponseBase
{
public VersionInfo VersionInfo = null;
public VersionInfo getVersionInfo() { return VersionInfo; }
public BrowseVersionInfoResponse setVersionInfo(VersionInfo value) { this.VersionInfo = value; return this; }
}
public static class ResponseBase
{
public ResponseStatus ResponseStatus = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class VersionInfo
{
public String Version = null;
public Date VersionDateTime = null;
public String getVersion() { return Version; }
public VersionInfo setVersion(String value) { this.Version = value; return this; }
public Date getVersionDateTime() { return VersionDateTime; }
public VersionInfo setVersionDateTime(Date value) { this.VersionDateTime = value; return this; }
}
}
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.
GET /host/version HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { VersionInfo: { Version: String, VersionDateTime: 0001-01-01 }, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }