GalaxyMobile App API

<back to all web services

GetImage

The following routes are available for this service:
GET/imageReturns the specified image based on the Id.
GET/image/{id}Returns the specified image based on the Id.
namespace CommonService.Media.Resize

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type SizeType =
        | Unknown = 0
        | Full = 1
        | Small = 2
        | Medium = 3
        | Large = 4
        | XLarge = 5

    [<AllowNullLiteral>]
    type GetImage() = 
        [<ApiMember(DataType="int", IsRequired=true)>]
        member val Id:Int32 = new Int32() with get,set

        ///<summary>
        ///Manually control the server resizing of the image.
        ///</summary>
        [<ApiMember(Description="Manually control the server resizing of the image.")>]
        member val ImageSize:SizeType = new SizeType() with get,set

        ///<summary>
        ///Set to true to return the image in Base64 format.
        ///</summary>
        [<ApiMember(DataType="boolean", Description="Set to true to return the image in Base64 format.")>]
        member val Base64:Boolean = new Boolean() with get,set

        ///<summary>
        ///Force this file to be returned as a thumbnail (small)
        ///</summary>
        [<ApiMember(Description="Force this file to be returned as a thumbnail (small)")>]
        member val Thumbnail:Boolean = new Boolean() with get,set

F# GetImage 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 /image HTTP/1.1 
Host: galaxymobile.api.dev.86degrees.com 
Accept: application/json