GET ShiftRest/Save

Request Information

URI Parameters

None.

Body Parameters

TShiftRest
NameDescriptionTypeAdditional information
ID

string

None.

TShift

TShift

None.

orderNO

integer

None.

startTime

string

None.

endTime

string

None.

offsetDay1

integer

None.

offsetDay2

integer

None.

restSec

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "sample string 1",
  "TShift": {
    "ID": "sample string 1",
    "TShiftModel": {
      "ID": "sample string 1",
      "modelName": "sample string 2"
    },
    "shiftCode": 2,
    "shiftNO": "sample string 3",
    "shiftName": "sample string 4",
    "shiftIndex": 5,
    "shiftInf": "sample string 6",
    "leader": "sample string 7",
    "startTime": "sample string 8",
    "endTime": "sample string 9",
    "offsetDay": 10
  },
  "orderNO": 2,
  "startTime": "sample string 3",
  "endTime": "sample string 4",
  "offsetDay1": 5,
  "offsetDay2": 6,
  "restSec": 7
}

application/xml, text/xml

Sample:
<TShiftRest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.Set">
  <ID>sample string 1</ID>
  <TShift>
    <ID>sample string 1</ID>
    <TShiftModel>
      <ID>sample string 1</ID>
      <modelName>sample string 2</modelName>
    </TShiftModel>
    <endTime>sample string 9</endTime>
    <leader>sample string 7</leader>
    <offsetDay>10</offsetDay>
    <shiftCode>2</shiftCode>
    <shiftIndex>5</shiftIndex>
    <shiftInf>sample string 6</shiftInf>
    <shiftNO>sample string 3</shiftNO>
    <shiftName>sample string 4</shiftName>
    <startTime>sample string 8</startTime>
  </TShift>
  <endTime>sample string 4</endTime>
  <offsetDay1>5</offsetDay1>
  <offsetDay2>6</offsetDay2>
  <orderNO>2</orderNO>
  <restSec>7</restSec>
  <startTime>sample string 3</startTime>
</TShiftRest>

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 'TShiftRest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.