ImageServiceAPI

<back to all web services

GetImageRequest

Requires Authentication
The following routes are available for this service:
GET/v4/images/{Id}
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


@DataContract
open class GetImageRequest : V4BaseRequest()
{
    @DataMember(Name="id")
    @SerializedName("id")
    var id:String? = null
}

@DataContract
open class V4BaseRequest
{
}

@DataContract
open class GetImageResponse : V4BaseResponse(), IGetImageResponse
{
}

@DataContract
open class V4BaseResponse
{
    @DataMember(Name="status")
    @SerializedName("status")
    var responseStatus:ResponseStatus? = null
}

Kotlin GetImageRequest DTOs

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

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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