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

Suggestion: Endpoint for specific date that returns holidays #5

Closed BeyondVertical closed 1 year ago

BeyondVertical commented 1 year ago

Hello, thanks for the API. One suggestion: Could we get an endpoint where we enter a specific date and the API returns the countries etc. that do have public or school holidays on that date? This would be really handy for me. Thanks for considering and for your work on the API! :)

fstueber commented 1 year ago

Hi, makes sense. Could you tell me a little bit more about your use case? Is it just for one day? Or maybe for one week as well? Thank you

BeyondVertical commented 1 year ago

I would like to check a specific date - for example for visiting a theme park - if there are holidays in the countries around Germany. A time window would also be helpful, but I think a date would be more helpful for my use case.

fstueber commented 1 year ago

Hi, I have implemented two new API endpoints: PublicHolidaysByDate + SchoolHolidaysByDate. See https://openholidaysapi.org/swagger for testing and details.

Any feedback welcomed.

BeyondVertical commented 1 year ago

Very cool and very fast. Thank you for implementing it so quickly! :)