POST
http://appapi.sunhouse.com.vn/api/HR/SyncSHTimeKeeper?username={username}

Lưu dữ liệu từ máy chấm công vào database

Yêu cầu

URI Parameters

NameDescriptionTypeAdditional information
username

tài khoản đăng nhập

string

Required

Body Parameters

danh sách dữ liệu chấm công

Collection of SHTimeKeeper
NameDescriptionTypeAdditional information
Id

string

None.

Enrollnumber

string

None.

MachineId

string

None.

MachineNo

integer

None.

VerifyMode

integer

None.

InoutMode

integer

None.

Workcode

integer

None.

TimeDate

date

None.

DataType

string

None.

Note

string

None.

frkRelationId

string

None.

CreateDate

date

None.

CreateBy

string

None.

NoDelete

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "Enrollnumber": "sample string 2",
    "MachineId": "sample string 3",
    "MachineNo": 4,
    "VerifyMode": 5,
    "InoutMode": 6,
    "Workcode": 7,
    "TimeDate": "2024-10-30T19:10:47.9622088+07:00",
    "DataType": "sample string 9",
    "Note": "sample string 10",
    "frkRelationId": "sample string 11",
    "CreateDate": "2024-10-30T19:10:47.9622088+07:00",
    "CreateBy": "sample string 13",
    "NoDelete": true
  },
  {
    "Id": "sample string 1",
    "Enrollnumber": "sample string 2",
    "MachineId": "sample string 3",
    "MachineNo": 4,
    "VerifyMode": 5,
    "InoutMode": 6,
    "Workcode": 7,
    "TimeDate": "2024-10-30T19:10:47.9622088+07:00",
    "DataType": "sample string 9",
    "Note": "sample string 10",
    "frkRelationId": "sample string 11",
    "CreateDate": "2024-10-30T19:10:47.9622088+07:00",
    "CreateBy": "sample string 13",
    "NoDelete": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfSHTimeKeeper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SystemWA.Database">
  <SHTimeKeeper>
    <CreateBy>sample string 13</CreateBy>
    <CreateDate>2024-10-30T19:10:47.9622088+07:00</CreateDate>
    <DataType>sample string 9</DataType>
    <Enrollnumber>sample string 2</Enrollnumber>
    <Id>sample string 1</Id>
    <InoutMode>6</InoutMode>
    <MachineId>sample string 3</MachineId>
    <MachineNo>4</MachineNo>
    <NoDelete>true</NoDelete>
    <Note>sample string 10</Note>
    <TimeDate>2024-10-30T19:10:47.9622088+07:00</TimeDate>
    <VerifyMode>5</VerifyMode>
    <Workcode>7</Workcode>
    <frkRelationId>sample string 11</frkRelationId>
  </SHTimeKeeper>
  <SHTimeKeeper>
    <CreateBy>sample string 13</CreateBy>
    <CreateDate>2024-10-30T19:10:47.9622088+07:00</CreateDate>
    <DataType>sample string 9</DataType>
    <Enrollnumber>sample string 2</Enrollnumber>
    <Id>sample string 1</Id>
    <InoutMode>6</InoutMode>
    <MachineId>sample string 3</MachineId>
    <MachineNo>4</MachineNo>
    <NoDelete>true</NoDelete>
    <Note>sample string 10</Note>
    <TimeDate>2024-10-30T19:10:47.9622088+07:00</TimeDate>
    <VerifyMode>5</VerifyMode>
    <Workcode>7</Workcode>
    <frkRelationId>sample string 11</frkRelationId>
  </SHTimeKeeper>
</ArrayOfSHTimeKeeper>

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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.