ImageServiceAPI

<back to all web services

GetProviderAttributesRequest

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

public class dtos
{

    @DataContract
    public static class GetProviderAttributesRequest extends V4BaseRequest
    {
        @DataMember(Name="provider")
        @SerializedName("provider")
        public ImageProvider provider = null;
        
        public ImageProvider getProvider() { return provider; }
        public GetProviderAttributesRequest setProvider(ImageProvider value) { this.provider = value; return this; }
    }

    @DataContract
    public static class V4BaseRequest
    {
        
    }

    public static enum ImageProvider
    {
        None,
        Cloudinary;
    }

    @DataContract
    public static class GetProviderAttributesResponse extends V4BaseResponse
    {
        @DataMember(Name="data")
        @SerializedName("data")
        public GetProviderAttributesResponseData data = null;
        
        public GetProviderAttributesResponseData getData() { return data; }
        public GetProviderAttributesResponse setData(GetProviderAttributesResponseData value) { this.data = value; return this; }
    }

    @DataContract
    public static class V4BaseResponse
    {
        @DataMember(Name="status")
        @SerializedName("status")
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public V4BaseResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    @DataContract
    public static class GetProviderAttributesResponseData
    {
        @DataMember(Name="attributes")
        @SerializedName("attributes")
        public ArrayList<String> attributes = null;
        
        public ArrayList<String> getAttributes() { return attributes; }
        public GetProviderAttributesResponseData setAttributes(ArrayList<String> value) { this.attributes = value; return this; }
    }

}

Java GetProviderAttributesRequest 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/providers/attributes 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

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