GET api/Timesheet/GetShiftTypeMaster?APIKey={APIKey}

Get Shift Type Master

Request Information

URI Parameters

NameDescriptionTypeAdditional information
APIKey

string

None.

Body Parameters

None.

Response Information

Resource Description

ShiftResponseDataModel
NameDescriptionTypeAdditional information
_objShift

Collection of ShiftDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "_objShift": [
    {
      "shiftTypeMaserId": 1,
      "shiftName": "sample string 1",
      "totalRecord": 2
    },
    {
      "shiftTypeMaserId": 1,
      "shiftName": "sample string 1",
      "totalRecord": 2
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<ShiftResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel">
  <Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord>
  <_objShift>
    <ShiftDataModel>
      <ShiftName>sample string 1</ShiftName>
      <ShiftTypeMaserId>1</ShiftTypeMaserId>
      <TotalRecord>2</TotalRecord>
    </ShiftDataModel>
    <ShiftDataModel>
      <ShiftName>sample string 1</ShiftName>
      <ShiftTypeMaserId>1</ShiftTypeMaserId>
      <TotalRecord>2</TotalRecord>
    </ShiftDataModel>
  </_objShift>
</ShiftResponseDataModel>

multipart/form-data

Sample:
<ShiftResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord><_objShift><ShiftDataModel><ShiftName>sample string 1</ShiftName><ShiftTypeMaserId>1</ShiftTypeMaserId><TotalRecord>2</TotalRecord></ShiftDataModel><ShiftDataModel><ShiftName>sample string 1</ShiftName><ShiftTypeMaserId>1</ShiftTypeMaserId><TotalRecord>2</TotalRecord></ShiftDataModel></_objShift></ShiftResponseDataModel>