| Required role: | Business |
| GET | /place/get |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class OpeningHours
{
open var weekly:WeeklyOpeningHours? = null
}
open class WeeklyOpeningHours
{
open var monday:OpeningHour? = null
open var tuesday:OpeningHour? = null
open var wednesday:OpeningHour? = null
open var thursday:OpeningHour? = null
open var friday:OpeningHour? = null
open var saturday:OpeningHour? = null
open var sunday:OpeningHour? = null
}
open class OpeningHour
{
open var openAtHour:Int? = null
open var openAtMinute:Int? = null
open var closeAtHour:Int? = null
open var closeAtMinute:Int? = null
}
enum class FeatureType
{
BarSpeciality,
BarType,
Cuisine,
SaveFoodAndMoney,
MealType,
Menu,
OutdoorSeating,
Parking,
PaymentOptions,
PriceMainDish,
SubCategories,
SubCategoriesAndBrands,
EatingSuitabilities,
TakeAway,
WearPriceProfile,
WheelChairAccessible,
Wifi,
WebShop,
Filtering,
}
open class BarSpecialityDto
{
open var id:Long? = null
open var slug:String? = null
open var title:String? = null
}
open class BarTypeDto
{
open var id:Long? = null
open var slug:String? = null
open var title:String? = null
}
open class CuisineDto
{
open var id:Long? = null
open var label:String? = null
open var slug:String? = null
}
enum class Parking
{
StreetParking,
ParkingGarageNearby,
}
enum class PaymentOption
{
Visa,
MasterCard,
AmericanExpress,
Diners,
Vipps,
}
open class EatingSuitability : IAudit
{
open var id:Long? = null
open var label:String? = null
open var slug:String? = null
open var position:Int? = null
override var createdAt:Date? = null
override var updatedAt:Date? = null
}
enum class PlaceType
{
Mall,
Regular,
}
open class PlaceContact
{
open var phone:String? = null
open var email:String? = null
open var website:String? = null
open var webShop:String? = null
}
open class PlaceAddress
{
open var street:String? = null
open var postalCode:String? = null
open var region:String? = null
open var countryCode:String? = null
}
open class TimeZoneDto
{
open var baseUtcOffset:TimeSpan? = null
open var daylightName:String? = null
open var displayName:String? = null
open var id:String? = null
open var standardName:String? = null
open var supportsDaylightSavingTime:Boolean? = null
}
open class PriceMainDishDto
{
open var title:String? = null
open var slug:PriceMainDish? = null
}
enum class PriceMainDish
{
Value,
Medium,
High,
FineDining,
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /place/get HTTP/1.1 Host: business-api.brovs.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"place":{"id":0,"name":"String","longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","overview":"String","openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"featureData":[{"slug":"BarSpeciality","label":"String"}],"categories":[{"id":0,"slug":"String","absoluteSlug":"String","name":"String","children":[{"id":0,"slug":"String","absoluteSlug":"String","name":"String","children":[{"id":0,"slug":"String","absoluteSlug":"String","name":"String","featureTypes":[{"slug":"BarSpeciality","label":"String"}]}],"featureTypes":[{"slug":"BarSpeciality","label":"String"}]}],"featureTypes":[{"slug":"BarSpeciality","label":"String"}]}],"rootCategory":{"id":0,"slug":"String","absoluteSlug":"String","name":"String","parentId":0},"menus":[{"id":0,"name":"String","url":"String","position":0}],"barSpecialities":[{"id":0,"slug":"String","title":"String"}],"barTypes":[{"id":0,"slug":"String","title":"String"}],"brands":[{"id":0,"brand":{"id":0,"definedByRootCategoryId":0,"name":"String"},"category":{"id":0,"slug":"String","absoluteSlug":"String","name":"String","parentId":0},"placeCustomBrand":{"id":0,"definedByPlaceId":0,"name":"String"}}],"cuisines":[{"id":0,"label":"String","slug":"String"}],"mealTypes":[{"id":0,"label":"String","slug":"String","position":0}],"parking":[{"label":"String","slug":"StreetParking"}],"paymentOptions":[{"label":"String","slug":"Visa"}],"eatingSuitabilities":[{"label":"String","slug":{"id":0,"label":"String","slug":"String","position":0,"createdAt":"0001-01-01T00:00:00.0000000+00:00","updatedAt":"0001-01-01T00:00:00.0000000+00:00"}}],"takeAways":[{"id":0,"label":"String","slug":"String","position":0}],"wearPriceProfiles":[{"id":0,"label":"String","slug":"String"}],"wheelChairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"logoUrl":"String","customImageUrl":"String","categoryImageUrl":"String","placeType":"Mall","places":[{"id":0,"name":"String","businessId":0,"longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","overview":"String","openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"placeType":"Mall","contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"},"wheelChairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"priceMainDish":{"title":"String","slug":"Value"},"otherServices":[{"id":0,"serviceName":"String","floor":"String"}],"floor":"String"}],"otherServices":[{"id":0,"serviceName":"String","floor":"String"}],"mall":{"id":0,"name":"String","businessId":0,"longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","overview":"String","openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"placeType":"Mall","contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"},"wheelChairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"priceMainDish":{"title":"String","slug":"Value"},"otherServices":[{"id":0,"serviceName":"String","floor":"String"}],"floor":"String"},"floor":"String","timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"businessId":0,"contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"},"priceMainDish":{"title":"String","slug":"Value"}}}