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 .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { barTypes: [ { count: 0, slug: String, title: String } ], barSpecialities: [ { count: 0, slug: String, title: String } ], brands: [ { count: 0, name: String } ], cuisines: [ { count: 0, label: String, slug: String } ], mealType: [ { count: 0, label: String, slug: String } ], eatingSuitabilities: [ { count: 0, label: String, slug: String } ], parkings: [ { count: 0, label: String, slug: StreetParking } ], paymentOptions: [ { count: 0, label: String, slug: Visa } ], priceMainDishes: [ { count: 0, title: String, slug: Value } ], takeAways: [ { count: 0, label: String, slug: String } ], wearPriceProfiles: [ { count: 0, slug: String, label: String } ], categories: [ { name: String, slug: String, absoluteSlug: String, featureTypes: [ BarSpeciality ], type: Parent, count: 0, imageUrl: String, allImageUrl: String, iconImageUrl: String, position: 0, children: [ { name: String, slug: String, absoluteSlug: String, featureTypes: [ BarSpeciality ], type: Parent, count: 0, imageUrl: String, allImageUrl: String, iconImageUrl: String, position: 0, children: [ { name: String, slug: String, absoluteSlug: String, featureTypes: [ BarSpeciality ], type: Parent, count: 0, imageUrl: String, allImageUrl: String, iconImageUrl: String, position: 0 } ] } ] } ] }