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 Calendar Date for a Given Liturgical Date #11

Open
alexclst opened this issue Sep 16, 2019 · 1 comment
Open

Get Calendar Date for a Given Liturgical Date #11

alexclst opened this issue Sep 16, 2019 · 1 comment

Comments

@alexclst
Copy link

This is a fantastic API as far as it goes. The one thing I see it missing, which is also the one thing I’m looking for to use in a given project but can’t find anywhere, is the ability to pass to an API a liturgical date (say, 25th Sunday in Ordinary Time) and have it return the calendar date for it. I suppose I’d also need year as a parameter as well in this case. I have found numerous liturgical calendar APIs, this is by far the best and easiest to use (I’m using it on the official server), but it still lacks a straightforward reverse-lookup from liturgical date to calendar date. You have the calendar date to liturgical date methods in place, just not their reverse. I’d appreciate it if you added the reverse lookup to get calendar date from a passed liturgical date.

@igneus
Copy link
Owner

igneus commented Sep 21, 2019

Hi, thanks for the suggestion. I will openly admit that I don't plan to add support for the "reverse lookup". Definitely not in the near future - the API is basically a thin wrapper over the calendarium-romanum Ruby gem, which is currently not well-suited for such a task. But if you are willing to, let's discuss what the API endpoint(s) could look like, let's wait for input from other users (is there anyone else who would like to have this feature implemented?), and who knows - maybe one day I (or someone else) will add it.

Do you have an idea of what the "reverse lookup" API endpoint(s) should look like - the paths (+ query parameters if needed) and response bodies?

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

2 participants