Otter · JSON Structure

Public Api Hour Interval Structure

Represents the beginning and ending of operating time for a menu specific to a Day.

Type: object Properties: 5
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

HourInterval is a JSON Structure definition published by Otter, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

day fromHour fromMinute toHour toMinute

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-hour-interval-structure.json",
  "name": "HourInterval",
  "description": "Represents the beginning and ending of operating time for a menu specific to a Day.",
  "type": "object",
  "properties": {
    "day": {
      "type": "string",
      "description": "Day of the week.",
      "example": "Monday",
      "enum": [
        "MONDAY",
        "TUESDAY",
        "WEDNESDAY",
        "THURSDAY",
        "FRIDAY",
        "SATURDAY",
        "SUNDAY"
      ]
    },
    "fromHour": {
      "maximum": 23,
      "minimum": 0,
      "type": "int32",
      "description": "Beginning hour of interval.",
      "example": 8
    },
    "fromMinute": {
      "maximum": 59,
      "minimum": 0,
      "type": "int32",
      "description": "Beginning minute of interval.",
      "example": 0
    },
    "toHour": {
      "maximum": 23,
      "minimum": 0,
      "type": "int32",
      "description": "Ending hour of interval.",
      "example": 20
    },
    "toMinute": {
      "maximum": 59,
      "minimum": 0,
      "type": "int32",
      "description": "Ending minute of interval.",
      "example": 45
    }
  }
}