ConsumerApi

<back to all web services

FindAvailableFilterRequest

Consumer
Requires Authentication
Required role:Consumer
The following routes are available for this service:
GET/find/filtering
namespace ConsumerApi

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type Parking =
        | StreetParking = 0
        | ParkingGarageNearby = 1

    type PaymentOption =
        | Visa = 0
        | MasterCard = 1
        | AmericanExpress = 2
        | Diners = 3
        | Vipps = 4

    type PriceMainDish =
        | Value = 0
        | Medium = 1
        | High = 2
        | FineDining = 3

    type DayOfWeek =
        | Sunday = 0
        | Monday = 1
        | Tuesday = 2
        | Wednesday = 3
        | Thursday = 4
        | Friday = 5
        | Saturday = 6

    [<AllowNullLiteral>]
    type OpenAtTimeDto() = 
        member val WeekDay:DayOfWeek = new DayOfWeek() with get,set
        member val Hour:Int32 = new Int32() with get,set
        member val Minute:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type BarTypeEsDto() = 
        member val Slug:String = null with get,set
        member val Title:String = null with get,set

    [<AllowNullLiteral>]
    type BarSpecialityEsDto() = 
        member val Slug:String = null with get,set
        member val Title:String = null with get,set

    [<AllowNullLiteral>]
    type BrandApiDto() = 
        member val Name:String = null with get,set

    [<AllowNullLiteral>]
    type CuisineEsDto() = 
        member val Label:String = null with get,set
        member val Slug:String = null with get,set

    [<AllowNullLiteral>]
    type MealTypeApiDto() = 
        member val Label:String = null with get,set
        member val Slug:String = null with get,set

    [<AllowNullLiteral>]
    type EatingSuitabilityApiDto() = 
        member val Label:String = null with get,set
        member val Slug:String = null with get,set

    [<AllowNullLiteral>]
    type ParkingApiDto() = 
        member val Label:String = null with get,set
        member val Slug:Parking = new Parking() with get,set

    [<AllowNullLiteral>]
    type PaymentOptionApiDto() = 
        member val Label:String = null with get,set
        member val Slug:PaymentOption = new PaymentOption() with get,set

    [<AllowNullLiteral>]
    type PriceMainDishApiDto() = 
        member val Title:String = null with get,set
        member val Slug:PriceMainDish = new PriceMainDish() with get,set

    [<AllowNullLiteral>]
    type TakeAwayApiDto() = 
        member val Label:String = null with get,set
        member val Slug:String = null with get,set

    [<AllowNullLiteral>]
    type WearPriceProfileEsDto() = 
        member val Slug:String = null with get,set
        member val Label:String = null with get,set

    type FeatureType =
        | BarSpeciality = 0
        | BarType = 1
        | Cuisine = 2
        | SaveFoodAndMoney = 3
        | MealType = 4
        | Menu = 5
        | OutdoorSeating = 6
        | Parking = 7
        | PaymentOptions = 8
        | PriceMainDish = 9
        | SubCategories = 10
        | SubCategoriesAndBrands = 11
        | EatingSuitabilities = 12
        | TakeAway = 13
        | WearPriceProfile = 14
        | WheelChairAccessible = 15
        | Wifi = 16
        | WebShop = 17
        | Filtering = 18

F# FindAvailableFilterRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>