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

Expand /random route to include ahadith from other books and collections #94

Open
ahadith opened this issue Sep 9, 2020 · 1 comment

Comments

@ahadith
Copy link
Contributor

ahadith commented Sep 9, 2020

Right now, the /random API route only fetches a random hadith from Riyad as-Salihin. We would like to expand the pool of hadith from which a random one is drawn. However, not all ahadith are valuable or meaningful when shown without context. To find a middle ground, we want to choose random ahadith from the following books and collections:

  • Ash-Shama'il al-Muhammadiyah (all books)
  • Al-Adab al-Mufrad
  • 40 Hadith an-Nawawi
  • Book of Du`a and Heart-softeners (80 and 81) of Sahih al-Bukhari
  • Book of Heart-Softeners (49) of Sahih Muslim
  • Book of Faith (47) of Sunan an-Nasa'i

It would be nice if these was configurable somehow, either in code or picked up from a data file.

Additionally, we also want the ability to choose selected ahadith from books such as the following:

  • Book of Greetings, Sahih Muslim
  • Book of Virtues, Sahih Muslim
  • Book of Knowledge, Sahih Muslim
  • Book of Dhikr, Sahih Muslim
  • Book of Repentance, Sahih Muslim
  • Book of Characteristics of Qiyamah, Jannah, and Nar, Sahih Muslim
  • Book of Paradise, Sahih Muslim
  • Book of Tribulations, Sahih Muslim
  • Book of Zuhd, Sahih Muslim
  • Book of the Sunnah, Sunan Abi Dawud
  • Book of Adab, Sunan Abi Dawud
  • the last 15-20 books of Jami` at-Tirmidhi
@itsyaasir
Copy link

Asalam aleikum warahmatulahi wabarakatuh , I would like to take to add this additional feature , can I work on it ?
Shukran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants