openpotato / openholidaysapi

Web service for the OpenHolidays API project
https://openholidaysapi.org/swagger/index.html
GNU Affero General Public License v3.0
9 stars 2 forks source link

What about an /Holidays endpoint? #12

Open michbeck100 opened 4 months ago

michbeck100 commented 4 months ago

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.

fstueber commented 4 months ago

I will consider this. I am anyway in the process of refactoring the API towards a stable 1.0 version. Thanks for the feedback.