Lifespark-Technologies / Infomed

Web portal that enables communication between hospitals and health authorities
MIT License
1 stars 1 forks source link

Require start and end dates for the appointmentSlots endpoint #58

Open kaashmonee opened 4 years ago

kaashmonee commented 4 years ago

Currently, as of #55, making a GET request to the appointmentSlots endpoint returns all appointments the hospital. Instead we should require that the user specifies a start and end date so we don't inundate the front end with unnecessary data.

@bl-nero An alternative to this solution I just thought of is to return only available appointments. Should we stick with this or should we have a GET to appointmentSlots return all the available appointments?