ConsumerApi

<back to all web services

FindAvailableFilterRequest

Consumer
Requires Authentication
Required role:Consumer
The following routes are available for this service:
GET/find/filtering
import Foundation
import ServiceStack

public enum Parking : String, Codable
{
    case StreetParking
    case ParkingGarageNearby
}

public enum PaymentOption : String, Codable
{
    case Visa
    case MasterCard
    case AmericanExpress
    case Diners
    case Vipps
}

public enum PriceMainDish : String, Codable
{
    case Value
    case Medium
    case High
    case FineDining
}

public class OpenAtTimeDto : Codable
{
    public var weekDay:DayOfWeek
    public var hour:Int
    public var minute:Int

    required public init(){}
}

public enum DayOfWeek : String, Codable
{
    case Sunday
    case Monday
    case Tuesday
    case Wednesday
    case Thursday
    case Friday
    case Saturday
}

public class BarTypeEsDto : Codable
{
    public var slug:String
    public var title:String

    required public init(){}
}

public class BarSpecialityEsDto : Codable
{
    public var slug:String
    public var title:String

    required public init(){}
}

public class BrandApiDto : Codable
{
    public var name:String

    required public init(){}
}

public class CuisineEsDto : Codable
{
    public var label:String
    public var slug:String

    required public init(){}
}

public class MealTypeApiDto : Codable
{
    public var label:String
    public var slug:String

    required public init(){}
}

public class EatingSuitabilityApiDto : Codable
{
    public var label:String
    public var slug:String

    required public init(){}
}

public class ParkingApiDto : Codable
{
    public var label:String
    public var slug:Parking

    required public init(){}
}

public class PaymentOptionApiDto : Codable
{
    public var label:String
    public var slug:PaymentOption

    required public init(){}
}

public class PriceMainDishApiDto : Codable
{
    public var title:String
    public var slug:PriceMainDish

    required public init(){}
}

public class TakeAwayApiDto : Codable
{
    public var label:String
    public var slug:String

    required public init(){}
}

public class WearPriceProfileEsDto : Codable
{
    public var slug:String
    public var label:String

    required public init(){}
}

public enum FeatureType : String, Codable
{
    case BarSpeciality
    case BarType
    case Cuisine
    case SaveFoodAndMoney
    case MealType
    case Menu
    case OutdoorSeating
    case Parking
    case PaymentOptions
    case PriceMainDish
    case SubCategories
    case SubCategoriesAndBrands
    case EatingSuitabilities
    case TakeAway
    case WearPriceProfile
    case WheelChairAccessible
    case Wifi
    case WebShop
    case Filtering
}


Swift FindAvailableFilterRequest DTOs

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

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