| GET | /warranty/v1/article/{referenceId}/image/{format*} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ArticleImageRequest extends BaseRequest<ArticleImageResponse>
{
public String referenceId = null;
public String format = null;
public String getReferenceId() { return referenceId; }
public ArticleImageRequest setReferenceId(String value) { this.referenceId = value; return this; }
public String getFormat() { return format; }
public ArticleImageRequest setFormat(String value) { this.format = value; return this; }
}
public static class BaseRequest<TResponse> implements IRequest
{
public String sid = null;
public String app = null;
public String _os = null;
public String _appVersion = null;
public String _searchMethod = null;
public String getSid() { return sid; }
public BaseRequest<TResponse> setSid(String value) { this.sid = value; return this; }
public String getApp() { return app; }
public BaseRequest<TResponse> setApp(String value) { this.app = value; return this; }
public String getOs() { return _os; }
public BaseRequest<TResponse> setOs(String value) { this._os = value; return this; }
public String getAppVersion() { return _appVersion; }
public BaseRequest<TResponse> setAppVersion(String value) { this._appVersion = value; return this; }
public String getSearchMethod() { return _searchMethod; }
public BaseRequest<TResponse> setSearchMethod(String value) { this._searchMethod = value; return this; }
}
public static class ArticleImageResponse
{
public String imageUrl = null;
public String getImageUrl() { return imageUrl; }
public ArticleImageResponse setImageUrl(String value) { this.imageUrl = 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.
GET /warranty/v1/article/{referenceId}/image/{format*} HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"imageUrl":"String"}