Open NEUDitao opened 3 years ago
On the new updater, we should send bodies of the following form to https://searchneu.com/api/notify_users:
https://searchneu.com/api/notify_users
// records of hash -> search query info { updatedCourses: CourseNotificationInfo[]; updatedSections: SectionNotificationInfo[]; }
Where CourseNotificationInfo and SectionNotificationInfo are defined as
CourseNotificationInfo
SectionNotificationInfo
type CourseNotificationInfo = { courseCode: string; courseHash: string; term: string; numberOfSectionsAdded: number; campus: string; }; type SectionNotificationInfo = { courseCode: string; sectionHash: string; term: string; seatsRemaining: number; crn: string; campus: string; };
and courseCode is subject + classID (for instance, CS 2500)
courseCode
subject + classID
(subject to change, mostly when @gamburgm and @dajinchu stop talking about Alignable)
Can we rename one of courseCode and courseHash?
courseHash
also, by campus do you mean host or cps / law?
campus
host
cps
law
On the new updater, we should send bodies of the following form to
https://searchneu.com/api/notify_users
:Where
CourseNotificationInfo
andSectionNotificationInfo
are defined asand
courseCode
issubject + classID
(for instance, CS 2500)(subject to change, mostly when @gamburgm and @dajinchu stop talking about Alignable)