POST /api/Shift/fetch_shift?dt={dt}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
dt

date

Required

Body Parameters

Collection of short_shift
NameDescriptionTypeAdditional information
fId

integer

None.

fMid

integer

None.

上班時間

string

None.

下班時間

string

None.

f上班前打卡

integer

None.

f上班結束後打卡

integer

None.

f加班

integer

None.

f加班結束後打卡

integer

None.

f跨夜

integer

None.

fWeek

integer

None.

fStatus

integer

None.

f更新時間

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "fId": 1,
    "fMid": 2,
    "上班時間": "sample string 3",
    "下班時間": "sample string 4",
    "f上班前打卡": 5,
    "f上班結束後打卡": 6,
    "f加班": 7,
    "f加班結束後打卡": 8,
    "f跨夜": 9,
    "fWeek": 10,
    "fStatus": 11,
    "f更新時間": "2025-05-24T02:06:33.1517178+08:00"
  },
  {
    "fId": 1,
    "fMid": 2,
    "上班時間": "sample string 3",
    "下班時間": "sample string 4",
    "f上班前打卡": 5,
    "f上班結束後打卡": 6,
    "f加班": 7,
    "f加班結束後打卡": 8,
    "f跨夜": 9,
    "fWeek": 10,
    "fStatus": 11,
    "f更新時間": "2025-05-24T02:06:33.1517178+08:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfShiftController.short_shift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_0512_2.Controllers">
  <ShiftController.short_shift>
    <fId>1</fId>
    <fMid>2</fMid>
    <fStatus>11</fStatus>
    <fWeek>10</fWeek>
    <f上班前打卡>5</f上班前打卡>
    <f上班結束後打卡>6</f上班結束後打卡>
    <f加班>7</f加班>
    <f加班結束後打卡>8</f加班結束後打卡>
    <f更新時間>2025-05-24T02:06:33.1517178+08:00</f更新時間>
    <f跨夜>9</f跨夜>
    <上班時間>sample string 3</上班時間>
    <下班時間>sample string 4</下班時間>
  </ShiftController.short_shift>
  <ShiftController.short_shift>
    <fId>1</fId>
    <fMid>2</fMid>
    <fStatus>11</fStatus>
    <fWeek>10</fWeek>
    <f上班前打卡>5</f上班前打卡>
    <f上班結束後打卡>6</f上班結束後打卡>
    <f加班>7</f加班>
    <f加班結束後打卡>8</f加班結束後打卡>
    <f更新時間>2025-05-24T02:06:33.1517178+08:00</f更新時間>
    <f跨夜>9</f跨夜>
    <上班時間>sample string 3</上班時間>
    <下班時間>sample string 4</下班時間>
  </ShiftController.short_shift>
</ArrayOfShiftController.short_shift>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

Collection of short_shift
NameDescriptionTypeAdditional information
fId

integer

None.

fMid

integer

None.

上班時間

string

None.

下班時間

string

None.

f上班前打卡

integer

None.

f上班結束後打卡

integer

None.

f加班

integer

None.

f加班結束後打卡

integer

None.

f跨夜

integer

None.

fWeek

integer

None.

fStatus

integer

None.

f更新時間

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "fId": 1,
    "fMid": 2,
    "上班時間": "sample string 3",
    "下班時間": "sample string 4",
    "f上班前打卡": 5,
    "f上班結束後打卡": 6,
    "f加班": 7,
    "f加班結束後打卡": 8,
    "f跨夜": 9,
    "fWeek": 10,
    "fStatus": 11,
    "f更新時間": "2025-05-24T02:06:33.1602368+08:00"
  },
  {
    "fId": 1,
    "fMid": 2,
    "上班時間": "sample string 3",
    "下班時間": "sample string 4",
    "f上班前打卡": 5,
    "f上班結束後打卡": 6,
    "f加班": 7,
    "f加班結束後打卡": 8,
    "f跨夜": 9,
    "fWeek": 10,
    "fStatus": 11,
    "f更新時間": "2025-05-24T02:06:33.1602368+08:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfShiftController.short_shift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_0512_2.Controllers">
  <ShiftController.short_shift>
    <fId>1</fId>
    <fMid>2</fMid>
    <fStatus>11</fStatus>
    <fWeek>10</fWeek>
    <f上班前打卡>5</f上班前打卡>
    <f上班結束後打卡>6</f上班結束後打卡>
    <f加班>7</f加班>
    <f加班結束後打卡>8</f加班結束後打卡>
    <f更新時間>2025-05-24T02:06:33.1602368+08:00</f更新時間>
    <f跨夜>9</f跨夜>
    <上班時間>sample string 3</上班時間>
    <下班時間>sample string 4</下班時間>
  </ShiftController.short_shift>
  <ShiftController.short_shift>
    <fId>1</fId>
    <fMid>2</fMid>
    <fStatus>11</fStatus>
    <fWeek>10</fWeek>
    <f上班前打卡>5</f上班前打卡>
    <f上班結束後打卡>6</f上班結束後打卡>
    <f加班>7</f加班>
    <f加班結束後打卡>8</f加班結束後打卡>
    <f更新時間>2025-05-24T02:06:33.1602368+08:00</f更新時間>
    <f跨夜>9</f跨夜>
    <上班時間>sample string 3</上班時間>
    <下班時間>sample string 4</下班時間>
  </ShiftController.short_shift>
</ArrayOfShiftController.short_shift>