| POST | /api/v1/marketplace/staging/media |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UploadStagingMedia implements IPost
{
}
public static class UploadStagingMediaResponse extends BaseResponse
{
public String id = null;
public Date expiresAtUtc = null;
public String getId() { return id; }
public UploadStagingMediaResponse setId(String value) { this.id = value; return this; }
public Date getExpiresAtUtc() { return expiresAtUtc; }
public UploadStagingMediaResponse setExpiresAtUtc(Date value) { this.expiresAtUtc = value; return this; }
}
public static class BaseResponse
{
public Status status = null;
public Status getStatus() { return status; }
public BaseResponse setStatus(Status value) { this.status = value; return this; }
}
public static class Status
{
public String message = null;
public Integer statusCode = null;
public String getMessage() { return message; }
public Status setMessage(String value) { this.message = value; return this; }
public Integer getStatusCode() { return statusCode; }
public Status setStatusCode(Integer value) { this.statusCode = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/v1/marketplace/staging/media HTTP/1.1
Host: pecuario-backend.develsystems.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":"String","expiresAtUtc":"\/Date(-62135596800000-0000)\/"}