Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL should have the ability to query for a course/section's info based on courseHash/sectionHash #4

Closed
NEUDitao opened this issue Jan 12, 2021 · 2 comments

Comments

@NEUDitao
Copy link

This is so that for the notifying service, we're able to validate a course exists when we get data.

@NEUDitao
Copy link
Author

Spec should be similar to what's laid out #5 . As in:

If I send a query of

{
   courseHash: string;
}

I should receive a response of

{
  courseCode: string;
  courseHash: string;
  term: string;
  numberOfSectionsAdded: number;
  campus: string;
};

and if I send

{
   sectionHash: string;
}

I should receive

type SectionNotificationInfo = {
  courseCode: string;
  sectionHash: string;
  term: string;
  seatsRemaining: number;
  crn: string;
  campus: string;
};

@gamburgm
Copy link
Member

thanks @megandouli!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants