This repository was archived by the owner on Jan 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
API SharedTimetables
Subeen Park edited this page Mar 19, 2023
·
2 revisions
μ μ κ° κ°μ§ 곡μ μκ°ν λͺ©λ‘μ λ°νν©λλ€.
[
{
"id": "6416fa5cf874ed393bed983d",
"title": "μλ κ³§ μμ ν κ±°μ",
"created_at": "2023-03-19T21:04:44.664",
"updated_at": "2023-03-19T21:04:44.664",
"is_valid": true
},
{
"id": "6416fa79f874ed393bed983e",
"title": "gongyou",
"created_at": "2023-03-19T21:05:13.146",
"updated_at": "2023-03-19T21:05:13.146",
"is_valid": true
}
]곡μ μκ°νλ₯Ό μλ‘ μμ±ν©λλ€.
| name | description | example |
|---|---|---|
| title | 곡μ μκ°νμ μ λͺ© | λ‘λ μκ°ν |
| timetable_id | μκ°ν id |
641c656(곡μ λ§ν¬λ‘λΆν° ν΄λΌμ΄μΈνΈκ° μ»μ κ°) |
μ±κ³΅ μ 200μ΄ λ΄λ €μ΅λλ€.
μ€ν¨μ μ μ ν http status codeμ ν¨κ» { errcode: string, message: string }
SHARED_TIME_TABLE_ALREADY_EXISTS(HttpStatus.BAD_REQUEST, 40004, "μ΄λ―Έ 곡μ μκ°νμ μ‘΄μ¬νλ timetableIdμ
λλ€.", "μ΄λ―Έ μΆκ°λ 곡μ μκ°νμ
λλ€.")
TIMETABLE_NOT_FOUND(HttpStatus.NOT_FOUND, 40400, "timetable_idκ° μ ν¨νμ§ μμ΅λλ€", "μ‘΄μ¬νμ§ μλ μκ°νμ
λλ€.")ν΄λΉ 곡μ μκ°νμ μ 보λ₯Ό λ°νν©λλ€.
{
"id": "641327e66d785a4ab83f7af4",
"user_id": "63941ce102cbe6001047d1bf",
"title": "μ§μ§ 곡μ λ°μ μκ°ν΄ μ΄λ¦λ°κΏ",
"timetable": {
"_id": "641325ed0537a3001683c649",
"userId": "641325e2df48c83154b793b6",
"year": 2023,
"semester": 1,
"lectures": [
{
"_id": "64132ab70537a3001683c653",
"academic_year": "3νλ
",
"category": "",
"class_time": "μ(1-2)/μ(1-2)",
"real_class_time": "μ(09:00~10:50)/μ(09:00~10:50)",
"class_time_json": [
{
"_id": "64132ab70537a3001683c655",
"day": 0,
"place": "302-208",
"start_time": "09:00",
"end_time": "10:50",
"len": 2.0,
"start": 1.0
},
{
"_id": "64132ab70537a3001683c654",
"day": 2,
"place": "302-310-2",
"start_time": "09:00",
"end_time": "10:50",
"len": 2.0,
"start": 1.0
}
],
"class_time_mask": [
251658240,
0,
251658240,
0,
0,
0,
0
],
"classification": "μ μ ",
"credit": 3,
"department": "μ»΄ν¨ν°κ³΅νλΆ",
"instructor": "μ μΉμ£Ό",
"lecture_number": "001",
"quota": 50,
"remark": "β",
"course_number": "4190.309A",
"course_title": "νλμ¨μ΄μμ€ν
μ€κ³",
"color": null,
"color_index": 2
}
],
"title": "μ§μ§ 곡μ ν μκ°ν",
"theme": 0,
"updatedAt": "2023-03-16T14:41:59.182Z"
}
}곡μ μκ°ν μ λͺ©μ μμ ν©λλ€.
| name | description | example |
|---|---|---|
| title | 곡μ μκ°νμ μ λͺ© | μλ‘μ΄ μ λͺ© |
μ±κ³΅ μ 200μ΄ λ΄λ €μ΅λλ€.
μ€ν¨μ μ μ ν http status codeμ ν¨κ» { errcode: string, message: string }
곡μ μκ°νλ₯Ό μμ ν©λλ€.
μμ λ lectureκ° μλ νμ¬ ν
μ΄λΈ κ°μ²΄λ₯Ό λ°νν©λλ€. μ GET tables/:id/ μ°Έκ³ .
μ€ν¨μ μ μ ν http status codeμ ν¨κ» { errcode: string, message: string }
SHARED_TIMETABLE_NOT_FOUND(HttpStatus.NOT_FOUND, 40401, "shared_timetable_idκ° μ ν¨νμ§ μμ΅λλ€", "μ‘΄μ¬νμ§ μλ 곡μ μκ°νμ
λλ€.")
NOT_SHARED_TIMETABLE_OWNER(HttpStatus.BAD_REQUEST, 40003, "λ΄ shared timetableμ΄ μλλλ€.", "λ΄ κ³΅μ μκ°νκ° μλλ©΄ μμ ν μ μμ΅λλ€."),- Home
- Conventions & License
- μλ² μμ λ° μκ°νΈλ μ λ°μ΄νΈ
- API List (for express branch)
- Error Codes
- Feedback
- Basics and Authentication
- Bookmark
- Coursebook
- Search Query
- Colors
- Tags
- Timetable
- Notification
- User
- Shared Timetables
- Client (for ver 2.0)
- StoryBoard