GET api/Catering/GetOperationHourAndHoliday?restaurantId={restaurantId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
restaurantId

integer

Required

Body Parameters

None.

Response Information

Resource Description

RestaurantOperationHourAndHoliday
NameDescriptionTypeAdditional information
RestaurantId

integer

None.

RestaurantHolidays

Collection of RestaurantHolidayView

None.

RestaurantOperationHours

Collection of RestaurantOperationHourView

None.

Response Formats

application/json, text/json

Sample:
{
  "restaurantId": 1,
  "restaurantHolidays": [
    {
      "id": 1,
      "holiday": "2025-08-27T16:57:06.5627781+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    },
    {
      "id": 1,
      "holiday": "2025-08-27T16:57:06.5627781+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    }
  ],
  "restaurantOperationHours": [
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    },
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    }
  ]
}

text/html

Sample:
{"restaurantId":1,"restaurantHolidays":[{"id":1,"holiday":"2025-08-27T16:57:06.5627781+00:00","remarks":"sample string 3","idTemp":4},{"id":1,"holiday":"2025-08-27T16:57:06.5627781+00:00","remarks":"sample string 3","idTemp":4}],"restaurantOperationHours":[{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0},{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0}]}

application/xml, text/xml

Sample:
<RestaurantOperationHourAndHoliday xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <RestaurantHolidays>
    <RestaurantHolidayView>
      <Holiday>2025-08-27T16:57:06.5627781+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
    <RestaurantHolidayView>
      <Holiday>2025-08-27T16:57:06.5627781+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
  </RestaurantHolidays>
  <RestaurantId>1</RestaurantId>
  <RestaurantOperationHours>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
  </RestaurantOperationHours>
</RestaurantOperationHourAndHoliday>