Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

API Bookmark

Hankyeol Choi edited this page Jan 20, 2023 · 10 revisions

GET /v1/bookmarks

관심강좌 조회

Input (Example)

Query: ?year=2023&semester=1

Output (Example)

해당 학기 관심강좌 목록 반환

{
    "year": 2023,
    "semester": 1,
    "lectures": [
        {
            "id": "63c152573ef71d00162f65cf",
            "academic_year": "1학년",
            "category": "창의와 융합",
            "class_time": "",
            "real_class_time": "",
            "class_time_json": [],
            "class_time_mask": [
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "classification": "교양",
            "credit": 2,
            "department": "기초교육원",
            "instructor": "김형렬",
            "lecture_number": "002",
            "quota": 1,
            "remark": "인성교육에 대한 대안적 접근 연구",
            "course_number": "054.002",
            "course_title": "학생자율연구 2"
        }
    ]
}

POST /v1/bookmarks/lecture

강의를 관심강좌 지정합니다. 해당 강의학기 관심강좌에 추가됩니다.

body

name description example
lecture_id 강좌 아이디 63c152573ef71d00162f65cf

Output

empty

에러

  • 강의 존재하지 않음: 404, errorcode: 0x4003
  • 이미 관심강좌 처리된 경우: 에러처리하지 않고 200 반환

DELETE /v1/bookmarks/lecture

강의를 관심강좌에서 삭제합니다. 해당 강의학기 관심강좌에서 삭제됩니다.

body

name description example
lecture_id 강좌 아이디 63c152573ef71d00162f65cf

Output

empty

에러

  • 강의 존재하지 않음: 404, errorcode: 0x4003
  • 관심강좌로 등록되지 않은 경우: 에러처리하지 않고 200 반환
Clone this wiki locally