OpenCourseAPI / OwlAPI

An open source REST API written in Python to scrape and serve Foothill / De Anza course data :ledger:
https://opencourse.dev:3000
MIT License
9 stars 7 forks source link

API Response Consistency #77

Open madhavarshney opened 4 years ago

madhavarshney commented 4 years ago

Currently, some of the API responses are not consistent. For example, fetching a non-existent course such as /fh/single?dept=MATH&course=2D returns a response as plaintext, instead of being valid JSON:

Error! Could not find given selectors in database

These instances should be fixed and the API should consistently return valid JSON .