Required role: | Consumer |
GET | /find/filtering |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
enum class Parking
{
StreetParking,
ParkingGarageNearby,
}
enum class PaymentOption
{
Visa,
MasterCard,
AmericanExpress,
Diners,
Vipps,
}
enum class PriceMainDish
{
Value,
Medium,
High,
FineDining,
}
open class OpenAtTimeDto
{
open var weekDay:DayOfWeek? = null
open var hour:Int? = null
open var minute:Int? = null
}
enum class DayOfWeek
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
}
open class BarTypeEsDto
{
open var slug:String? = null
open var title:String? = null
}
open class BarSpecialityEsDto
{
open var slug:String? = null
open var title:String? = null
}
open class BrandApiDto
{
open var name:String? = null
}
open class CuisineEsDto
{
open var label:String? = null
open var slug:String? = null
}
open class MealTypeApiDto
{
open var label:String? = null
open var slug:String? = null
}
open class EatingSuitabilityApiDto
{
open var label:String? = null
open var slug:String? = null
}
open class ParkingApiDto
{
open var label:String? = null
open var slug:Parking? = null
}
open class PaymentOptionApiDto
{
open var label:String? = null
open var slug:PaymentOption? = null
}
open class PriceMainDishApiDto
{
open var title:String? = null
open var slug:PriceMainDish? = null
}
open class TakeAwayApiDto
{
open var label:String? = null
open var slug:String? = null
}
open class WearPriceProfileEsDto
{
open var slug:String? = null
open var label:String? = null
}
enum class FeatureType
{
BarSpeciality,
BarType,
Cuisine,
SaveFoodAndMoney,
MealType,
Menu,
OutdoorSeating,
Parking,
PaymentOptions,
PriceMainDish,
SubCategories,
SubCategoriesAndBrands,
EatingSuitabilities,
TakeAway,
WearPriceProfile,
WheelChairAccessible,
Wifi,
WebShop,
Filtering,
}
Kotlin 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 } ] } ] } ] }