icssc / peterportal-api-next

API that provides easy access to public data from UC Irvine. Developed for Anteaters, by Anteaters.
https://docs.icssc.club/anteaterapi
MIT License
6 stars 0 forks source link

Add `cacheOnly` parameter to WebSoc endpoint #24

Closed ecxyzzy closed 1 year ago

ecxyzzy commented 1 year ago

When set to true, the parameter should make all parameters (except year and quarter) truly optional, and disable falling back to querying WebSoc on an empty response (i.e. just return { schools: [] } if no entries were matched). The default value for this parameter should be false. It should be an error if cache is set to false and this parameter is set to true.