Web server that exposes information gathered by matrufsc-crawler.
This project uses poetry
as the dependency manager. Install dependencies and run with:
poetry install
poetry run matrufsc-api -u ./db.json
Check available arguments and options with poetry run matrufsc-crawler --help
.
Get data from all UFSC's courses.
- GET
- Query: Optional:
semester
andcampus
/courses?semester=20192&campus=FLO
---
[
{
"id": "ACL5111",
"name": "Hematologia Clínica Veterinária",
"class_hours": 36
},
{
"id": "ACL5130",
"name": "Biossegurança e Boas Práticas de Laboratório",
"class_hours": 36
},
]
Detailed info about a specific class.
- GET
- Query: Required:
semester
Optional:semester
/classes?course_id=INE5403&semester=20192
---
[
{
"id": "01208A",
"class_labels": [
"Bloqueada (inativa)"
],
"capacity": 25,
"enrolled": 0,
"special": 0,
"waiting": null,
"times": [
"2.0820-2 / CTC-CTC303",
"3.1010-2 / CTC-CTC302",
"5.0730-2 / CTC-CTC105"
],
"professors": [
"Mauro Roisenberg"
]
}
]
Returns the semesters that were crawled.
- GET
/semesters
---
[
"20193",
"20192"
]
Returns the names from the available campi.
- GET
/campi
---
[
"CBS",
"JOI",
"ARA",
"BLN",
"FLO"
]