Soft-Contact / resto

Soft-Contact's Restolution software related materials
5 stars 6 forks source link

Changes to Restaurant.openHours #3

Closed limealot closed 5 years ago

limealot commented 5 years ago

Open hours

Contains an array of <Weekday> that can be "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" or "Sunday". All 7 weekdays are always included.

Open hour

listRestaurants

... sample response:

...
"openHours" :[
  {
    "Monday": [
      {
        "type": "RESTAURANT",
        "start": "0900",
        "finish": "2100"
      },
      {
        "type": "KITCHEN",
        "start": "0900",
        "finish": "1300"
      },
      {
        "type": "KITCHEN",
        "start": "1400",
        "finish": "1800"
      }
    ]
  },
  {
    "Tuesday": []
  },
  {
    "Wednesday": [
      {
        "type": "RESTAURANT",
        "start": "0000",
        "finish": "2400"
      }
    ]
  },
  {
    "Thursday": []
  },
  {
    "Friday": [
      {
        "type": "RESTAURANT",
        "start": "0900",
        "finish": "2400"
      }
    ]
  },
  {
    "Saturday": [
     {
        "type": "RESTAURANT",
        "start": "0000",
        "finish": "0230"
      }
    ]
  },
  {
    "Sunday": []
  }
],
...

Open hour types

limealot commented 5 years ago

Merged changes to resto_json_api.md