| Required role: | Business |
| POST | /place/update |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class BusinessApi
{
public static class OpeningHours
{
public WeeklyOpeningHours weekly = null;
public WeeklyOpeningHours getWeekly() { return weekly; }
public OpeningHours setWeekly(WeeklyOpeningHours value) { this.weekly = value; return this; }
}
public static class WeeklyOpeningHours
{
public OpeningHour monday = null;
public OpeningHour tuesday = null;
public OpeningHour wednesday = null;
public OpeningHour thursday = null;
public OpeningHour friday = null;
public OpeningHour saturday = null;
public OpeningHour sunday = null;
public OpeningHour getMonday() { return monday; }
public WeeklyOpeningHours setMonday(OpeningHour value) { this.monday = value; return this; }
public OpeningHour getTuesday() { return tuesday; }
public WeeklyOpeningHours setTuesday(OpeningHour value) { this.tuesday = value; return this; }
public OpeningHour getWednesday() { return wednesday; }
public WeeklyOpeningHours setWednesday(OpeningHour value) { this.wednesday = value; return this; }
public OpeningHour getThursday() { return thursday; }
public WeeklyOpeningHours setThursday(OpeningHour value) { this.thursday = value; return this; }
public OpeningHour getFriday() { return friday; }
public WeeklyOpeningHours setFriday(OpeningHour value) { this.friday = value; return this; }
public OpeningHour getSaturday() { return saturday; }
public WeeklyOpeningHours setSaturday(OpeningHour value) { this.saturday = value; return this; }
public OpeningHour getSunday() { return sunday; }
public WeeklyOpeningHours setSunday(OpeningHour value) { this.sunday = value; return this; }
}
public static class OpeningHour
{
public Integer openAtHour = null;
public Integer openAtMinute = null;
public Integer closeAtHour = null;
public Integer closeAtMinute = null;
public Integer getOpenAtHour() { return openAtHour; }
public OpeningHour setOpenAtHour(Integer value) { this.openAtHour = value; return this; }
public Integer getOpenAtMinute() { return openAtMinute; }
public OpeningHour setOpenAtMinute(Integer value) { this.openAtMinute = value; return this; }
public Integer getCloseAtHour() { return closeAtHour; }
public OpeningHour setCloseAtHour(Integer value) { this.closeAtHour = value; return this; }
public Integer getCloseAtMinute() { return closeAtMinute; }
public OpeningHour setCloseAtMinute(Integer value) { this.closeAtMinute = value; return this; }
}
public static enum Parking
{
StreetParking,
ParkingGarageNearby;
}
public static enum PaymentOption
{
Visa,
MasterCard,
AmericanExpress,
Diners,
Vipps;
}
}
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.
POST /place/update HTTP/1.1
Host: business-api.brovs.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"placeId":0,"name":"String","phone":"String","email":"String","street":"String","postalCode":"String","region":"String","overview":"String","website":"String","webShop":"String","longitude":0,"latitude":0,"wheelChairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"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}}},"parking":["StreetParking"],"paymentOptions":["Visa"]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"placeId":0}