| GET | /product-collection/{brand}/{posCode} | Get customer product collections |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetProductCollections
{
/**
* Brand
*/
@ApiMember(Description="Brand", IsRequired=true)
public String brand = null;
/**
* POS Legacy
*/
@ApiMember(Description="POS Legacy", IsRequired=true)
public String posCode = null;
public String getBrand() { return brand; }
public GetProductCollections setBrand(String value) { this.brand = value; return this; }
public String getPosCode() { return posCode; }
public GetProductCollections setPosCode(String value) { this.posCode = value; return this; }
}
public static class GetProductCollectionsResponse extends ArrayList<ProductCollection>
{
}
public static class ProductCollection
{
/**
* Product Collection description
*/
@ApiMember(Description="Product Collection description", IsRequired=true)
public String productCollection = null;
/**
* SAP ProductCollection ID, e.g. 'CA-1'
*/
@ApiMember(Description="SAP ProductCollection ID, e.g. 'CA-1'", IsRequired=true)
public String sapProductCollectionId = null;
/**
* Product Collection description translation
*/
@ApiMember(Description="Product Collection description translation", IsRequired=true)
public String translation = null;
public String getProductCollection() { return productCollection; }
public ProductCollection setProductCollection(String value) { this.productCollection = value; return this; }
public String getSapProductCollectionId() { return sapProductCollectionId; }
public ProductCollection setSapProductCollectionId(String value) { this.sapProductCollectionId = value; return this; }
public String getTranslation() { return translation; }
public ProductCollection setTranslation(String value) { this.translation = value; return this; }
}
}
Java GetProductCollections DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /product-collection/{brand}/{posCode} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length []