POST | /creatives/callback |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CreateCreativeCallback
{
public String refId = null;
public String state = null;
public ArrayList<DiffusionApiProviderOutput> outputs = null;
public ResponseStatus responseStatus = null;
public String getRefId() { return refId; }
public CreateCreativeCallback setRefId(String value) { this.refId = value; return this; }
public String getState() { return state; }
public CreateCreativeCallback setState(String value) { this.state = value; return this; }
public ArrayList<DiffusionApiProviderOutput> getOutputs() { return outputs; }
public CreateCreativeCallback setOutputs(ArrayList<DiffusionApiProviderOutput> value) { this.outputs = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public CreateCreativeCallback setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class DiffusionApiProviderOutput
{
public String fileName = null;
public String url = null;
public String getFileName() { return fileName; }
public DiffusionApiProviderOutput setFileName(String value) { this.fileName = value; return this; }
public String getUrl() { return url; }
public DiffusionApiProviderOutput setUrl(String value) { this.url = value; return this; }
}
public static class CreateCreativeCallbackResponse
{
}
}
Java CreateCreativeCallback DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /creatives/callback HTTP/1.1
Host: blazordiffusion.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
refId: String,
state: String,
outputs:
[
{
fileName: String,
url: String
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { }