API 목록
POST
: CurriculumItem 관리
HTTP Request
POST /studies/1/curriculums HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: mocked-access-token
Content-Length: 438
Host: localhost:8080
{
"curriculumItems" : [ {
"id" : 1,
"itemOrder" : 1,
"name" : "Change Spring Study"
}, {
"id" : 2,
"itemOrder" : 4,
"name" : "CS Study"
}, {
"id" : 3,
"itemOrder" : 2,
"name" : "Infra Study"
}, {
"id" : 4,
"itemOrder" : 3,
"name" : "Algorithm Study"
} ],
"deletedCurriculumItems" : [ {
"id" : 3,
"itemOrder" : 2,
"name" : "Infra Study"
} ]
}
HTTP Response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Parameter | Description |
---|---|
|
스터디 id |
Path | Type | Description |
---|---|---|
|
|
커리큘럼 아이템 리스트 |
|
|
커리큘럼 아이템 ID (새로 생성된 경우 null) |
|
|
커리큘럼 아이템 순서 |
|
|
커리큘럼 아이템 이름 |
|
|
삭제된 커리큘럼 아이템 리스트 |
|
|
삭제된 커리큘럼 아이템 ID |
|
|
삭제된 커리큘럼 아이템 순서 |
|
|
삭제된 커리큘럼 아이템 이름 |
PATCH
: CurriculumItem 상태 변경
HTTP Request
PATCH /curriculums/1/1/check HTTP/1.1
Authorization: mocked-access-token
Host: localhost:8080
HTTP Response
HTTP/1.1 204 No Content
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Parameter | Description |
---|---|
|
커리큘럼 id |
|
참여자 id |
GET
: Study 전체 커리큘럼 조회
HTTP Request
GET /studies/1/curriculums/all HTTP/1.1
Host: localhost:8080
Parameter | Description |
---|---|
|
스터디 id |
HTTP 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
Content-Length: 208
[ {
"id" : 1,
"name" : "chapter1. greedy",
"itemOrder" : 0,
"isDeleted" : false,
"participantCurriculumItems" : [ {
"id" : 1,
"participantId" : 1,
"isChecked" : false
} ]
} ]
GET
: Study 개인 커리큘럼 조회
HTTP Request
GET /studies/1/curriculums HTTP/1.1
Authorization: 1
Host: localhost:8080
Name | Description |
---|---|
|
member id |
Parameter | Description |
---|---|
|
스터디 id |
HTTP 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
Content-Length: 234
[ {
"id" : 1,
"participantId" : 1,
"name" : "chapter1. greedy",
"itemOrder" : 0,
"isChecked" : false
}, {
"id" : 2,
"participantId" : 1,
"name" : "chapter2. DFS",
"itemOrder" : 0,
"isChecked" : true
} ]
Path | Type | Description |
---|---|---|
|
|
participantCurriculum id |
|
|
참여자 id |
|
|
스터디 설명 |
|
|
체크 여부 |
|
|
커리큘럼 내용 |