Closed ghost closed 4 years ago
Thanks, @amerghazal for reporting this, I will fix it.
BTW I made a Python client if you would like to contribute to it as well.
thanks! i saw that after i had gotten started - i'll look into it iA. i'm happy to submit a PR if you can tell me whether you prefer addressing the API or the documentation.
@amerghazal If you mean by addressing the API is this bug, then no I will do it. it is an easy fix. I want to help more in the documentation part/
sounds good, JAK
I was in the process of writing a ~python~ client for the API when I noticed an inconsistency. The documentation above shows that the query can be made without a trailing slash. When querying the API without a trailing slash for tafseer, a 301 Permanently Moved is returned with a redirect to the same URI with a trailing slash appended. See here:
Some clients (like the library used by cURL above), don't follow redirects by default and might break here. Should the documentation be clarified to require the trailing slash? If so, my only nit would be that the
tafseer
resources seems inconsistent with thequran
resources given the latter don't require a trailing slash in their URIs.jazakumallah khair for your work on this project