Antel 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.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports WebService.ServiceModel.ResourceModels
Imports CommonService.Media.Resize

Namespace Global

    Namespace WebService.ServiceModel.ResourceModels

        Public Partial Class GetImage
            <ApiMember(DataType:="int", IsRequired:=true)>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Manually control the server resizing of the image.
            '''</Summary>
            <ApiMember(Description:="Manually control the server resizing of the image.")>
            Public Overridable Property ImageSize As SizeType

            '''<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.")>
            Public Overridable Property Base64 As Boolean

            <ApiMember>
            Public Overridable Property Platform As String

            '''<Summary>
            '''Force this file to be returned as a thumbnail (small)
            '''</Summary>
            <ApiMember(Description:="Force this file to be returned as a thumbnail (small)")>
            Public Overridable Property Thumbnail As Boolean
        End Class
    End Namespace
End Namespace

VB.NET GetImage DTOs

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

HTTP + XML

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

GET /image HTTP/1.1 
Host: antel.api.dev.86degrees.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />