Wouldn't it be good to have an endpoint that returns all holiday entries for the query parameters at once? Since the payload already contains the type Public or School, this would be easy to differentiate.
I would suggest to introduce the endpoint /Holidays which has the same parameters like the others but returns data from both /SchoolHolidays and /PublicHolidays.
Wouldn't it be good to have an endpoint that returns all holiday entries for the query parameters at once? Since the payload already contains the type
Public
orSchool
, this would be easy to differentiate.I would suggest to introduce the endpoint
/Holidays
which has the same parameters like the others but returns data from both/SchoolHolidays
and/PublicHolidays
.