| GET | /customer/{brand}/filter-values | Get filters for customer search |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetFilterValues
{
/**
* Brand
*/
@ApiMember(Description="Brand", IsRequired=true)
public String brand = null;
/**
* Fields
*/
@ApiMember(Description="Fields", IsRequired=true)
public ArrayList<String> fields = null;
/**
* List of POS Legacy
*/
@ApiMember(Description="List of POS Legacy", IsRequired=true)
public ArrayList<String> posCodes = null;
public String getBrand() { return brand; }
public GetFilterValues setBrand(String value) { this.brand = value; return this; }
public ArrayList<String> getFields() { return fields; }
public GetFilterValues setFields(ArrayList<String> value) { this.fields = value; return this; }
public ArrayList<String> getPosCodes() { return posCodes; }
public GetFilterValues setPosCodes(ArrayList<String> value) { this.posCodes = value; return this; }
}
public static class GetFilterValuesResponse
{
public ArrayList<FilterValues> salesReps = null;
public ArrayList<FilterValues> getSalesReps() { return salesReps; }
public GetFilterValuesResponse setSalesReps(ArrayList<FilterValues> value) { this.salesReps = value; return this; }
}
public static class FilterValues
{
/**
* Id
*/
@ApiMember(Description="Id", IsRequired=true)
public String id = null;
/**
* Description
*/
@ApiMember(Description="Description", IsRequired=true)
public String name = null;
public String getId() { return id; }
public FilterValues setId(String value) { this.id = value; return this; }
public String getName() { return name; }
public FilterValues setName(String value) { this.name = value; return this; }
}
}
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 /customer/{brand}/filter-values HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"salesReps":[{"id":"String","name":"String"}]}