| Required role: | Business |
| GET | /mall/get_nearby_places |
|---|
namespace BusinessApi
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type OpeningHour() =
member val OpenAtHour:Int32 = new Int32() with get,set
member val OpenAtMinute:Int32 = new Int32() with get,set
member val CloseAtHour:Int32 = new Int32() with get,set
member val CloseAtMinute:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type WeeklyOpeningHours() =
member val Monday:OpeningHour = null with get,set
member val Tuesday:OpeningHour = null with get,set
member val Wednesday:OpeningHour = null with get,set
member val Thursday:OpeningHour = null with get,set
member val Friday:OpeningHour = null with get,set
member val Saturday:OpeningHour = null with get,set
member val Sunday:OpeningHour = null with get,set
[<AllowNullLiteral>]
type OpeningHours() =
member val Weekly:WeeklyOpeningHours = null with get,set
type PlaceType =
| Mall = 0
| Regular = 1
[<AllowNullLiteral>]
type PlaceContact() =
member val Phone:String = null with get,set
member val Email:String = null with get,set
member val Website:String = null with get,set
member val WebShop:String = null with get,set
[<AllowNullLiteral>]
type PlaceAddress() =
member val Street:String = null with get,set
member val PostalCode:String = null with get,set
member val Region:String = null with get,set
member val CountryCode:String = null with get,set
[<AllowNullLiteral>]
type TimeZoneDto() =
member val BaseUtcOffset:TimeSpan = new TimeSpan() with get,set
member val DaylightName:String = null with get,set
member val DisplayName:String = null with get,set
member val Id:String = null with get,set
member val StandardName:String = null with get,set
member val SupportsDaylightSavingTime:Boolean = new Boolean() with get,set
type PriceMainDish =
| Value = 0
| Medium = 1
| High = 2
| FineDining = 3
[<AllowNullLiteral>]
type PriceMainDishDto() =
member val Title:String = null with get,set
member val Slug:PriceMainDish = new PriceMainDish() with get,set
F# GetNearByPlacesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /mall/get_nearby_places HTTP/1.1 Host: business-api.brovs.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"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"}]}