| POST | /v4/short-links |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class PostAffiliateTokenSetRequest
{
@DataMember(Name="baseCode")
@SerializedName("baseCode")
public String baseCode = null;
@DataMember(Name="domain")
@SerializedName("domain")
public String domain = null;
@DataMember(Name="username")
@SerializedName("username")
public String username = null;
@DataMember(Name="affiliateTokensSet")
@SerializedName("affiliateTokensSet")
public UUID affiliateTokensSet = null;
public String getBaseCode() { return baseCode; }
public PostAffiliateTokenSetRequest setBaseCode(String value) { this.baseCode = value; return this; }
public String getDomain() { return domain; }
public PostAffiliateTokenSetRequest setDomain(String value) { this.domain = value; return this; }
public String getUsername() { return username; }
public PostAffiliateTokenSetRequest setUsername(String value) { this.username = value; return this; }
public UUID getAffiliateTokensSet() { return affiliateTokensSet; }
public PostAffiliateTokenSetRequest setAffiliateTokensSet(UUID value) { this.affiliateTokensSet = value; return this; }
}
@DataContract
public static class PostAffiliateTokenSetResponse
{
@DataMember
public Boolean success = null;
@DataMember
public ResponseStatus responseStatus = null;
public Boolean isSuccess() { return success; }
public PostAffiliateTokenSetResponse setSuccess(Boolean value) { this.success = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public PostAffiliateTokenSetResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
Java PostAffiliateTokenSetRequest DTOs
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 /v4/short-links HTTP/1.1
Host: shortlinks-api.qa.platform.georiot.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"baseCode":"String","domain":"String","username":"String","affiliateTokensSet":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"success":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}