1Fetch Client 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.
import Foundation
import ServiceStack

public class GetImage : Codable
{
    // @ApiMember(IsRequired=true)
    public var id:String

    required public init(){}
}


Swift GetImage 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 /image HTTP/1.1 
Host: api.1fetch.co.za 
Accept: text/csv