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

Get All MakeUpLab and Interview Events #117

Open
Anshul-Birla opened this issue Nov 15, 2022 · 0 comments
Open

Get All MakeUpLab and Interview Events #117

Anshul-Birla opened this issue Nov 15, 2022 · 0 comments
Assignees

Comments

@Anshul-Birla
Copy link
Collaborator

Anshul-Birla commented Nov 15, 2022

For the league, there are 2 types of additional events that people can schedule. One is make up labs and another is interview. We need a way to get all the make-up labs and all the interviews for the entire school and a specific user from the database.

The database tables look like the following:

  • event_information: has basic info about the event (such as name, id)
  • users: has info about users, such as userId, firstName, lastName.
  • calendar_infrmation: has the actual start datetime and enddatetime, key’d by event_information_id
  • commitments: maps event_infomration_id and user_id, so you know what users are committed to what events

We need to create the following routes:

GET /api/one-times-events/userId?=
This should get all make-up-lab events if the userid query param is not set. It should return the data in the following format

{
	Id: string
	startStr: string 
	endStr: string 
	Users: {
		firstName: string
		lastName: string
   }[]
}

Remember that we edit the models/openapi/models.swagger.yaml file to generate models for the api routes we are using

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

3 participants