Submit Schedule
Submit a new schedule generation request.
Usage:
httpx.post("http://localhost:8000/submit", json=body)
post/submit
Request body
Example request
{
"config": {
"rooms": [
"Room 101"
],
"labs": [
"Lab 101"
],
"courses": [
{
"conflicts": [
"CS 102"
],
"course_id": "CS 101",
"credits": 3,
"faculty": [
"Dr. Smith"
],
"lab": [
"Lab 101"
],
"room": [
"Room 101"
]
}
],
"faculty": [
{
"course_preferences": {
"CS 101": 5
},
"lab_preferences": {
"Lab 101": 5
},
"mandatory_days": [
"MON"
],
"maximum_credits": 12,
"maximum_days": 3,
"minimum_credits": 3,
"name": "Dr. Smith",
"room_preferences": {
"Room 101": 5
},
"times": {
"MON": [
"10:00-12:00"
],
"TUE": [
"10:00-12:00"
]
},
"unique_course_limit": 3
}
]
},
"time_slot_config": {
"classes": [
{
"credits": 3,
"meetings": [
{
"day": "MON",
"duration": 150,
"lab": false
}
],
"start_time": "10:00"
}
],
"max_time_gap": 30,
"min_time_overlap": 45
},
"limit": 10,
"optimizer_flags": [
"faculty_course",
"faculty_room",
"faculty_lab",
"same_room",
"same_lab",
"pack_rooms",
"pack_labs"
]
}Response
Successful Response