세미나 출석
정회원 만 출석이 가능합니다.
|
요청
Request
PATCH /seminars/14/attendances HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 31
Host: docs.api.com
Cookie: accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1ODYiLCJyb2xlcyI6IlJPTEVf7ZqM7JuQIiwiaWF0IjoxNzExMTE5MTQ4LCJleHAiOjE3MTExMjI3NDh9._l13kiB5f7G80-Zl2Iaw8gZM8bG3VUU1hKNVkyWJTuo
{
"attendanceCode" : "2868"
}
Request Cookies
Name | Description |
---|---|
|
ACCESS TOKEN (ROLE_회원) |
Path Parameters
Parameter | Description |
---|---|
|
세미나의 ID |
Request Fields
필드명 | 타입 | 필수값 | 양식 | 설명 |
---|---|---|---|---|
|
|
true |
세미나 출석 코드 |
응답
Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 46
{
"id" : 18,
"statusType" : "ATTENDANCE"
}
Response Fields
Path | Type | Description |
---|---|---|
|
|
세미나 출석 ID |
|
|
출석 상태 |
세미나 출석 상태 변경
요청
Request
PATCH /seminars/attendances/4 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 67
Host: docs.api.com
Cookie: accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1NjIiLCJyb2xlcyI6IlJPTEVf7ZqM7JuQLFJPTEVf7ZqM7J6lIiwiaWF0IjoxNzExMTE5MTQ4LCJleHAiOjE3MTExMjI3NDh9.DPHP9e2zowGyuzHIRCizXZ4qXPBTTA9c419UZHV998U
{
"excuse" : "늦게 일어나서",
"statusType" : "LATENESS"
}
Request Cookies
Name | Description |
---|---|
|
ACCESS TOKEN (ROLE_회장, ROLE_부회장, ROLE_서기) |
Path Parameters
Parameter | Description |
---|---|
|
출석 상태를 변경하고자 하는 세미나 출석 ID |
Request Fields
필드명 | 타입 | 필수값 | 양식 | 설명 |
---|---|---|---|---|
|
|
세미나 사유 |
||
|
|
true |
출석 타입 |
세미나 출석 목록 조회
요청
Request
GET /seminars/attendances HTTP/1.1
Host: docs.api.com
Cookie: accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1NjAiLCJyb2xlcyI6IlJPTEVf7ZqM7JuQLFJPTEVf7ZqM7J6lIiwiaWF0IjoxNzExMTE5MTQ4LCJleHAiOjE3MTExMjI3NDh9.oM1PdlJD8rD8Bh6sF5bGFHtrol6HVVbpZ5uGXIsg-lA
Request Cookies
Name | Description |
---|---|
|
ACCESS TOKEN (ROLE_회장, ROLE_부회장, ROLE_서기) |
Query Parameters
파라미터명 | 필수값 | 양식 | 설명 |
---|---|---|---|
|
페이지 (default: 0) |
||
|
한 페이지당 불러올 개수 (default: 10) |
응답
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1209
{
"content" : [ {
"memberId" : 561,
"memberName" : "김기철",
"generation" : "15.0",
"attendances" : [ {
"seminarId" : 4,
"attendanceId" : 3,
"attendanceStatus" : "LATENESS",
"excuse" : null,
"attendDate" : "2024-03-22"
} ],
"totalAttendance" : 0,
"totalLateness" : 1,
"totalAbsence" : 0,
"totalPersonal" : 0
}, {
"memberId" : 560,
"memberName" : "김영환",
"generation" : "15.0",
"attendances" : [ {
"seminarId" : 4,
"attendanceId" : 2,
"attendanceStatus" : "ATTENDANCE",
"excuse" : null,
"attendDate" : "2024-03-22"
} ],
"totalAttendance" : 1,
"totalLateness" : 0,
"totalAbsence" : 0,
"totalPersonal" : 0
} ],
"pageable" : {
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 10,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalPages" : 1,
"totalElements" : 2,
"first" : true,
"size" : 10,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 2,
"empty" : false
}
Response Fields
Path | Type | Description |
---|---|---|
|
|
회원 ID |
|
|
회원 이름 |
|
|
회원 기수 |
|
|
회원 출석 정보 리스트 |
|
|
세미나 ID |
|
|
세미나 출석 ID |
|
|
세미나 출석 날짜 |
|
|
세미나 출석 상태 |
|
|
세미나 결석/지각 사유 |
|
|
총 출석일 |
|
|
총 지각일 |
|
|
총 결석일 |
|
|
총 개인사정일 |
|
|
가져오는 페이지가 비어 있는 지 |
|
|
첫 페이지인지 |
|
|
마지막 페이지인지 |
|
|
페이지 number (0부터 시작) |
|
|
현재 페이지의 데이터 개수 |
|
|
페이지에 대한 부가 정보 |
|
|
정렬 기준이 비어 있는 지 |
|
|
정렬이 되었는지 |
|
|
정렬이 되지 않았는지 |
|
|
총 페이지 수 |
|
|
총 요소 수 |
|
|
한 페이지당 데이터 개수 |