api
api copied to clipboard
Expand /random route to include ahadith from other books and collections
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
Asalam aleikum warahmatulahi wabarakatuh , I would like to take to add this additional feature , can I work on it ? Shukran