GET api/DashboardCompanyOpeningDay/GetCompanyWeek?CompanyId={CompanyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CompanyId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

CommonWeekOpenings
NameDescriptionTypeAdditional information
Monday

CommonCompanyOpeningDay

None.

Tuesday

CommonCompanyOpeningDay

None.

Wednesday

CommonCompanyOpeningDay

None.

Thursday

CommonCompanyOpeningDay

None.

Friday

CommonCompanyOpeningDay

None.

Saturday

CommonCompanyOpeningDay

None.

Sunday

CommonCompanyOpeningDay

None.

CompanyId

globally unique identifier

None.

HasOpening

boolean

None.

CurrentOpeningState

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Monday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "Tuesday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "Wednesday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "Thursday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "Friday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "Saturday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "Sunday": {
    "DayOfWeek": 1,
    "P1Opened": true,
    "P1From": "00:00:00.1234567",
    "P1FromStr": "00:00",
    "P1To": "00:00:00.1234567",
    "P1ToStr": "00:00",
    "P2Opened": true,
    "P2From": "00:00:00.1234567",
    "P2FromStr": "00:00",
    "P2To": "00:00:00.1234567",
    "P2ToStr": "00:00",
    "P1WorkingPlaceId": "sample string 8",
    "P2WorkingPlaceId": "sample string 9"
  },
  "CompanyId": "a73026ff-eeb7-4917-a856-6478db7f8726",
  "HasOpening": true,
  "CurrentOpeningState": false
}

application/xml, text/xml

Sample:
<CommonWeekOpenings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MesHalles.Common.Objects">
  <CompanyId>a73026ff-eeb7-4917-a856-6478db7f8726</CompanyId>
  <Friday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Friday>
  <Monday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Monday>
  <Saturday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Saturday>
  <Sunday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Sunday>
  <Thursday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Thursday>
  <Tuesday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Tuesday>
  <Wednesday>
    <DayOfWeek>1</DayOfWeek>
    <P1From>PT0.1234567S</P1From>
    <P1Opened>true</P1Opened>
    <P1To>PT0.1234567S</P1To>
    <P1WorkingPlaceId>sample string 8</P1WorkingPlaceId>
    <P2From>PT0.1234567S</P2From>
    <P2Opened>true</P2Opened>
    <P2To>PT0.1234567S</P2To>
    <P2WorkingPlaceId>sample string 9</P2WorkingPlaceId>
  </Wednesday>
</CommonWeekOpenings>