POST api/LabourPunch/Add

Request Information

URI Parameters

None.

Body Parameters

LabourPunchAdd
NameDescriptionTypeAdditional information
PunchId

string

None.

LabourId

string

None.

CostCenterId

string

None.

TPartcicipationId

string

None.

Location

string

None.

PunchImage

string

None.

Latitude

string

None.

Longitude

string

None.

UserId

string

None.

MarkedByUserId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PunchId": "sample string 1",
  "LabourId": "sample string 2",
  "CostCenterId": "sample string 3",
  "TPartcicipationId": "sample string 4",
  "Location": "sample string 5",
  "PunchImage": "sample string 6",
  "Latitude": "sample string 7",
  "Longitude": "sample string 8",
  "UserId": "sample string 9",
  "MarkedByUserId": "sample string 10"
}

application/xml, text/xml

Sample:
<LabourPunchAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Railtech_HRMS.Model.EmployeeModal">
  <CostCenterId>sample string 3</CostCenterId>
  <LabourId>sample string 2</LabourId>
  <Latitude>sample string 7</Latitude>
  <Location>sample string 5</Location>
  <Longitude>sample string 8</Longitude>
  <MarkedByUserId>sample string 10</MarkedByUserId>
  <PunchId>sample string 1</PunchId>
  <PunchImage>sample string 6</PunchImage>
  <TPartcicipationId>sample string 4</TPartcicipationId>
  <UserId>sample string 9</UserId>
</LabourPunchAdd>

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

Response Information

Resource Description

LabourPunchResponse
NameDescriptionTypeAdditional information
StatusCode

integer

None.

status

string

None.

statusText

string

None.

EP

Collection of LabourPunchView

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "status": "sample string 2",
  "statusText": "sample string 3",
  "EP": [
    {
      "PunchId": "sample string 1",
      "LabourId": "sample string 2",
      "EMPId": "sample string 3",
      "FullName": "sample string 4",
      "PunchDateTime": "sample string 5",
      "Location": "sample string 6",
      "PunchImage": "sample string 7"
    },
    {
      "PunchId": "sample string 1",
      "LabourId": "sample string 2",
      "EMPId": "sample string 3",
      "FullName": "sample string 4",
      "PunchDateTime": "sample string 5",
      "Location": "sample string 6",
      "PunchImage": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<LabourPunchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Railtech_HRMS.Model.EmployeeModal">
  <EP>
    <LabourPunchView>
      <EMPId>sample string 3</EMPId>
      <FullName>sample string 4</FullName>
      <LabourId>sample string 2</LabourId>
      <Location>sample string 6</Location>
      <PunchDateTime>sample string 5</PunchDateTime>
      <PunchId>sample string 1</PunchId>
      <PunchImage>sample string 7</PunchImage>
    </LabourPunchView>
    <LabourPunchView>
      <EMPId>sample string 3</EMPId>
      <FullName>sample string 4</FullName>
      <LabourId>sample string 2</LabourId>
      <Location>sample string 6</Location>
      <PunchDateTime>sample string 5</PunchDateTime>
      <PunchId>sample string 1</PunchId>
      <PunchImage>sample string 7</PunchImage>
    </LabourPunchView>
  </EP>
  <StatusCode>1</StatusCode>
  <status>sample string 2</status>
  <statusText>sample string 3</statusText>
</LabourPunchResponse>