ImageServiceAPI

<back to all web services

GetImageRequest

Requires Authentication
The following routes are available for this service:
GET/v4/images/{Id}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ImageServiceAPI.ServiceModel.V4.Requests;
using ImageServiceAPI.ServiceModel.V4.Responses;

namespace ImageServiceAPI.ServiceModel.V4.Requests
{
    [DataContract]
    public partial class GetImageRequest
        : V4BaseRequest
    {
        [DataMember(Name="id")]
        public virtual string Id { get; set; }
    }

    [DataContract]
    public partial class V4BaseRequest
    {
    }

}

namespace ImageServiceAPI.ServiceModel.V4.Responses
{
    [DataContract]
    public partial class GetImageResponse
        : V4BaseResponse, IGetImageResponse
    {
    }

    [DataContract]
    public partial class V4BaseResponse
    {
        [DataMember(Name="status")]
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# GetImageRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v4/images/{Id} HTTP/1.1 
Host: image-service-api.qa.platform.georiot.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"status":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}