POST 요청을 사용하여 출결을 등록할 수 있습니다.
Content-Type required | string Example: application/json;charset=UTF-8 요청 Media Type |
Accept required | string Example: application/json 수신 Media Type |
endAt | string 근무 종료 시간 |
startAt | string 근무 시작 시간 |
{- "startAt": "2022-10-18T23:06:08.275541",
- "endAt": "2022-10-18T23:06:08.275541"
}
{- "id": 1,
- "startAt": "2022-10-16T05:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 20,
- "minute": 0
}, - "basicPay": 200000,
- "totalPay": 302000,
- "extraWorks": [
- {
- "id": 1,
- "startAt": "2022-10-16T05:00:00",
- "endAt": "2022-10-16T06:00:00",
- "workDuration": {
- "hour": 1,
- "minute": 0
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 9000
}, - {
- "id": 2,
- "startAt": "2022-10-16T22:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 3,
- "minute": 0
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 27000
}, - {
- "id": 3,
- "startAt": "2022-10-16T14:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 11,
- "minute": 0
}, - "extraWorkType": "OVERTIME",
- "extraPay": 66000
}
]
}
GET 요청을 사용하여 기준년월의 출결 정보를 조회할 수 있습니다.
yearMonth required | string 조회 년월 |
Content-Type required | string Example: application/json;charset=UTF-8 요청 Media Type |
Accept required | string Example: application/json 수신 Media Type |
{- "totalPages": 1,
- "totalElementCount": 4,
- "currentPage": 1,
- "currentElementCount": 4,
- "perPageNumber": 10,
- "firstPage": true,
- "lastPage": true,
- "hasNextPage": false,
- "hasPrevious": false,
- "elements": [
- {
- "id": 7,
- "startAt": "2022-10-16T05:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 20,
- "minute": 0
}, - "basicPay": 200000,
- "totalPay": 302000,
- "extraWorks": [
- {
- "id": 10,
- "startAt": "2022-10-16T05:00:00",
- "endAt": "2022-10-16T06:00:00",
- "workDuration": {
- "hour": 1,
- "minute": 0
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 9000
}, - {
- "id": 11,
- "startAt": "2022-10-16T22:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 3,
- "minute": 0
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 27000
}, - {
- "id": 12,
- "startAt": "2022-10-16T14:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 11,
- "minute": 0
}, - "extraWorkType": "OVERTIME",
- "extraPay": 66000
}
]
}, - {
- "id": 6,
- "startAt": "2022-10-16T09:00:00",
- "endAt": "2022-10-16T23:30:00",
- "workDuration": {
- "hour": 14,
- "minute": 30
}, - "basicPay": 140000,
- "totalPay": 186500,
- "extraWorks": [
- {
- "id": 8,
- "startAt": "2022-10-16T22:00:00",
- "endAt": "2022-10-16T23:30:00",
- "workDuration": {
- "hour": 1,
- "minute": 30
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 13500
}, - {
- "id": 9,
- "startAt": "2022-10-16T18:00:00",
- "endAt": "2022-10-16T23:30:00",
- "workDuration": {
- "hour": 5,
- "minute": 30
}, - "extraWorkType": "OVERTIME",
- "extraPay": 33000
}
]
}, - {
- "id": 5,
- "startAt": "2022-10-16T09:00:00",
- "endAt": "2022-10-16T22:00:00",
- "workDuration": {
- "hour": 13,
- "minute": 0
}, - "basicPay": 130000,
- "totalPay": 154000,
- "extraWorks": [
- {
- "id": 7,
- "startAt": "2022-10-16T18:00:00",
- "endAt": "2022-10-16T22:00:00",
- "workDuration": {
- "hour": 4,
- "minute": 0
}, - "extraWorkType": "OVERTIME",
- "extraPay": 24000
}
]
}, - {
- "id": 4,
- "startAt": "2022-10-16T09:00:00",
- "endAt": "2022-10-16T18:00:00",
- "workDuration": {
- "hour": 9,
- "minute": 0
}, - "basicPay": 90000,
- "totalPay": 90000,
- "extraWorks": [ ]
}
]
}
GET 요청을 사용하여 출결을 조회 할 수 있습니다.
id required | string 출결 번호 |
Content-Type required | string Example: application/json;charset=UTF-8 요청 Media Type |
Accept required | string Example: application/json 수신 Media Type |
{- "id": 3,
- "startAt": "2022-10-16T05:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 20,
- "minute": 0
}, - "basicPay": 200000,
- "totalPay": 302000,
- "extraWorks": [
- {
- "id": 4,
- "startAt": "2022-10-16T05:00:00",
- "endAt": "2022-10-16T06:00:00",
- "workDuration": {
- "hour": 1,
- "minute": 0
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 9000
}, - {
- "id": 5,
- "startAt": "2022-10-16T22:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 3,
- "minute": 0
}, - "extraWorkType": "NIGHT_SHIFT",
- "extraPay": 27000
}, - {
- "id": 6,
- "startAt": "2022-10-16T14:00:00",
- "endAt": "2022-10-17T01:00:00",
- "workDuration": {
- "hour": 11,
- "minute": 0
}, - "extraWorkType": "OVERTIME",
- "extraPay": 66000
}
]
}
공통 페이지 응답 구조
Content-Type required | string Example: application/json;charset=UTF-8 요청 Media Type |
Accept required | string Example: application/json 수신 Media Type |
{- "totalPages": 1,
- "totalElementCount": 0,
- "currentPage": 1,
- "currentElementCount": 0,
- "perPageNumber": 0,
- "firstPage": true,
- "lastPage": true,
- "hasNextPage": false,
- "hasPrevious": false,
- "elements": [ ]
}
추가 근무 타입을 표현하는 ExtraWorkType 객체의 코드 목록
Content-Type required | string Example: application/json;charset=UTF-8 요청 Media Type |
Accept required | string Example: application/json 수신 Media Type |
{- "extraWorkType": {
- "NIGHT_SHIFT": "야간 근무",
- "OVERTIME": "연장 근무"
}
}