Required role: | Consumer |
GET | /find/filtering |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class ConsumerApi
{
public static enum Parking
{
StreetParking,
ParkingGarageNearby;
}
public static enum PaymentOption
{
Visa,
MasterCard,
AmericanExpress,
Diners,
Vipps;
}
public static enum PriceMainDish
{
Value,
Medium,
High,
FineDining;
}
public static class OpenAtTimeDto
{
public DayOfWeek weekDay = null;
public Integer hour = null;
public Integer minute = null;
public DayOfWeek getWeekDay() { return weekDay; }
public OpenAtTimeDto setWeekDay(DayOfWeek value) { this.weekDay = value; return this; }
public Integer getHour() { return hour; }
public OpenAtTimeDto setHour(Integer value) { this.hour = value; return this; }
public Integer getMinute() { return minute; }
public OpenAtTimeDto setMinute(Integer value) { this.minute = value; return this; }
}
public static enum DayOfWeek
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday;
}
public static class BarTypeEsDto
{
public String slug = null;
public String title = null;
public String getSlug() { return slug; }
public BarTypeEsDto setSlug(String value) { this.slug = value; return this; }
public String getTitle() { return title; }
public BarTypeEsDto setTitle(String value) { this.title = value; return this; }
}
public static class BarSpecialityEsDto
{
public String slug = null;
public String title = null;
public String getSlug() { return slug; }
public BarSpecialityEsDto setSlug(String value) { this.slug = value; return this; }
public String getTitle() { return title; }
public BarSpecialityEsDto setTitle(String value) { this.title = value; return this; }
}
public static class BrandApiDto
{
public String name = null;
public String getName() { return name; }
public BrandApiDto setName(String value) { this.name = value; return this; }
}
public static class CuisineEsDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public CuisineEsDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public CuisineEsDto setSlug(String value) { this.slug = value; return this; }
}
public static class MealTypeApiDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public MealTypeApiDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public MealTypeApiDto setSlug(String value) { this.slug = value; return this; }
}
public static class EatingSuitabilityApiDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public EatingSuitabilityApiDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public EatingSuitabilityApiDto setSlug(String value) { this.slug = value; return this; }
}
public static class ParkingApiDto
{
public String label = null;
public Parking slug = null;
public String getLabel() { return label; }
public ParkingApiDto setLabel(String value) { this.label = value; return this; }
public Parking getSlug() { return slug; }
public ParkingApiDto setSlug(Parking value) { this.slug = value; return this; }
}
public static class PaymentOptionApiDto
{
public String label = null;
public PaymentOption slug = null;
public String getLabel() { return label; }
public PaymentOptionApiDto setLabel(String value) { this.label = value; return this; }
public PaymentOption getSlug() { return slug; }
public PaymentOptionApiDto setSlug(PaymentOption value) { this.slug = value; return this; }
}
public static class PriceMainDishApiDto
{
public String title = null;
public PriceMainDish slug = null;
public String getTitle() { return title; }
public PriceMainDishApiDto setTitle(String value) { this.title = value; return this; }
public PriceMainDish getSlug() { return slug; }
public PriceMainDishApiDto setSlug(PriceMainDish value) { this.slug = value; return this; }
}
public static class TakeAwayApiDto
{
public String label = null;
public String slug = null;
public String getLabel() { return label; }
public TakeAwayApiDto setLabel(String value) { this.label = value; return this; }
public String getSlug() { return slug; }
public TakeAwayApiDto setSlug(String value) { this.slug = value; return this; }
}
public static class WearPriceProfileEsDto
{
public String slug = null;
public String label = null;
public String getSlug() { return slug; }
public WearPriceProfileEsDto setSlug(String value) { this.slug = value; return this; }
public String getLabel() { return label; }
public WearPriceProfileEsDto setLabel(String value) { this.label = value; return this; }
}
public static enum FeatureType
{
BarSpeciality,
BarType,
Cuisine,
SaveFoodAndMoney,
MealType,
Menu,
OutdoorSeating,
Parking,
PaymentOptions,
PriceMainDish,
SubCategories,
SubCategoriesAndBrands,
EatingSuitabilities,
TakeAway,
WearPriceProfile,
WheelChairAccessible,
Wifi,
WebShop,
Filtering;
}
}
Java FindAvailableFilterRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /find/filtering HTTP/1.1 Host: unstable-consumer-api.brovs.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <FindAvailableFilterResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsumerApi.Dto"> <BarSpecialities> <BarSpecialityCountDto> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Title xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Title> <Count>0</Count> </BarSpecialityCountDto> </BarSpecialities> <BarTypes> <BarTypeCountDto> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Title xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Title> <Count>0</Count> </BarTypeCountDto> </BarTypes> <Brands> <BrandCountDto> <Name xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Name> <Count>0</Count> </BrandCountDto> </Brands> <Categories> <CategoryFacetTreeDto> <AbsoluteSlug>String</AbsoluteSlug> <AllImageUrl>String</AllImageUrl> <Children> <CategoryFacetTreeDto> <AbsoluteSlug>String</AbsoluteSlug> <AllImageUrl>String</AllImageUrl> <Children> <CategoryFacetTreeDto> <AbsoluteSlug>String</AbsoluteSlug> <AllImageUrl>String</AllImageUrl> <Children i:nil="true" /> <Count>0</Count> <FeatureTypes xmlns:d8p1="http://schemas.datacontract.org/2004/07/Entities.Database"> <d8p1:FeatureType>BarSpeciality</d8p1:FeatureType> </FeatureTypes> <IconImageUrl>String</IconImageUrl> <ImageUrl>String</ImageUrl> <Name>String</Name> <Position>0</Position> <Slug>String</Slug> <Type>Parent</Type> </CategoryFacetTreeDto> </Children> <Count>0</Count> <FeatureTypes xmlns:d6p1="http://schemas.datacontract.org/2004/07/Entities.Database"> <d6p1:FeatureType>BarSpeciality</d6p1:FeatureType> </FeatureTypes> <IconImageUrl>String</IconImageUrl> <ImageUrl>String</ImageUrl> <Name>String</Name> <Position>0</Position> <Slug>String</Slug> <Type>Parent</Type> </CategoryFacetTreeDto> </Children> <Count>0</Count> <FeatureTypes xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Database"> <d4p1:FeatureType>BarSpeciality</d4p1:FeatureType> </FeatureTypes> <IconImageUrl>String</IconImageUrl> <ImageUrl>String</ImageUrl> <Name>String</Name> <Position>0</Position> <Slug>String</Slug> <Type>Parent</Type> </CategoryFacetTreeDto> </Categories> <Cuisines> <CuisineCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Count>0</Count> </CuisineCountDto> </Cuisines> <EatingSuitabilities> <EatingSuitabilityCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Count>0</Count> </EatingSuitabilityCountDto> </EatingSuitabilities> <MealType> <MealTypeCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Count>0</Count> </MealTypeCountDto> </MealType> <Parkings> <ParkingCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">StreetParking</Slug> <Count>0</Count> </ParkingCountDto> </Parkings> <PaymentOptions> <PaymentOptionCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">Visa</Slug> <Count>0</Count> </PaymentOptionCountDto> </PaymentOptions> <PriceMainDishes> <PriceMainDishCountDto> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">Value</Slug> <Title xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Title> <Count>0</Count> </PriceMainDishCountDto> </PriceMainDishes> <TakeAways> <TakeAwayCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Count>0</Count> </TakeAwayCountDto> </TakeAways> <WearPriceProfiles> <WearPriceProfileCountDto> <Label xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Label> <Slug xmlns="http://schemas.datacontract.org/2004/07/Api.Dto">String</Slug> <Count>0</Count> </WearPriceProfileCountDto> </WearPriceProfiles> </FindAvailableFilterResponse>