@ -80,6 +80,7 @@ hadis_category_tree_swagger = swagger_auto_schema(
" id " : 10 ,
" name " : " Tafsir " ,
" description " : " Quran commentary " ,
" slug " : " -330 " ,
" source_type " : " quran " ,
" hadis_count " : 2 ,
" has_hadis " : False ,
@ -93,6 +94,7 @@ hadis_category_tree_swagger = swagger_auto_schema(
" id " : 11 ,
" name " : " Surah Al-Fatiha " ,
" description " : " Opening chapter " ,
" slug " : " -330 " ,
" source_type " : " quran " ,
" hadis_count " : 2 ,
" has_hadis " : True ,
@ -129,6 +131,7 @@ hadis_category_tree_swagger = swagger_auto_schema(
" id " : 20 ,
" name " : " Book of Faith " ,
" description " : " Iman topics " ,
" slug " : " -330 " ,
" source_type " : " hadith " ,
" hadis_count " : 1 ,
" has_hadis " : True ,
@ -178,6 +181,7 @@ hadis_sync_swagger = swagger_auto_schema(
{
" id " : 1001 ,
" number " : 45 ,
" slug " : " достоинство-молитвы-и-ее-место-в-религии " ,
" category_id " : 205 ,
" title " : " The Reward of Intentions " ,
" title_narrator " : " Imam Sadiq (as) " ,
@ -348,6 +352,11 @@ hadis_list_swagger = swagger_auto_schema(
" source_type " : " hadith " ,
" sect_type " : " sunni "
} ,
" status " : {
" id " : 130 ,
" title " : " Прерванный " ,
" color " : " orange "
} ,
" share_link " : " http://example.com/hadis/1 "
} ,
{
@ -364,6 +373,11 @@ hadis_list_swagger = swagger_auto_schema(
" source_type " : " hadith " ,
" sect_type " : " sunni "
} ,
" status " : {
" id " : 130 ,
" title " : " Прерванный " ,
" color " : " orange "
} ,
" share_link " : " http://example.com/hadis/2 "
}
]
@ -502,6 +516,7 @@ hadis_basic_swagger = swagger_auto_schema(
examples = {
" application/json " : {
" id " : 1 ,
" slug " : " достоинство-молитвы-и-ее-место-в-религии " ,
" title " : " The Opening " ,
" title_narrator " : " From Abu Hurairah " ,
" text " : " Actions are but by intention... " ,
@ -546,6 +561,7 @@ hadis_detail_swagger = swagger_auto_schema(
examples = {
" application/json " : {
" id " : 1800 ,
" slug " : " достоинство-молитвы-и-ее-место-в-религии " ,
" number " : 1 ,
" hadis_status_text " : " Agreed upon by all scholars " ,
" hadis_status " : {
@ -745,12 +761,14 @@ hadis_corrections_swagger = swagger_auto_schema(
" title " : " Translation Correction " ,
" description " : " Updated translation for better accuracy and clarity. The previous translation was slightly ambiguous in the context of intention and action. " ,
" translation " : " Actions are judged by intentions, and every person will have what they intended " ,
" share_link " : ' null '
} ,
{
" id " : 2 ,
" title " : " Authenticity Clarification " ,
" description " : " Additional scholarly notes on the authenticity and grading of this hadith. This hadith is considered authentic (sahih) by consensus of scholars. " ,
" translation " : " Actions are judged by intentions, and every person will have what they intended " ,
" share_link " : ' null '
}
]
}
@ -783,11 +801,25 @@ hadis_collections_swagger = swagger_auto_schema(
examples = {
" application/json " : [
{
" id " : 1 ,
" title " : " Collection Title " ,
" description " : " Collection description " ,
" order " : 1 ,
" status " : True
" count " : 2 ,
" next " : ' null ' ,
" previous " : ' null ' ,
" results " : [
{
" id " : 9 ,
" title " : " The Book of Intellect and Ignorance " ,
" summary " : " A collection of narrations regarding the importance of reason. " ,
" slug " : " the-book-of-intellect-and-ignorance " ,
" thumbnail " : ' null '
} ,
{
" id " : 10 ,
" title " : " The Book of Monotheism " ,
" summary " : " Hadiths explaining the oneness of God. " ,
" slug " : " the-book-of-monotheism " ,
" thumbnail " : ' null '
}
]
}
]
}
@ -924,40 +956,31 @@ transmitter_filters_swagger = swagger_auto_schema(
description = " list of transmitters filter data " ,
examples = {
" application/json " : {
" count " : 10 ,
" next " : " http://api.example.com/transmitters/?page=2 " ,
" previous " : None ,
" results " : [
" generations " : [ 1 , 2 , 3 , 4 , 5 ] ,
" madhabs " : [
" shia " ,
" sunni "
] ,
" reliabilities " : [
{
" generations " : [ 1 , 2 , 3 , 4 , 5 ] ,
" madhabs " : [
{
" text " : " Shia " ,
" slug " : " shia "
} ,
{
" text " : " Sunni " ,
" slug " : " sunni "
} ,
{
" text " : " Hanafi " ,
" slug " : " hanafi "
}
] ,
" reliabilities " : [
{
" text " : " Very Reliable " ,
" slug " : " very-reliable "
} ,
{
" text " : " Reliable " ,
" slug " : " reliable "
} ,
{
" text " : " Acceptable " ,
" slug " : " acceptable "
} ,
]
" text " : " Very Reliable " ,
" slug " : " very-reliable "
} ,
{
" text " : " Reliable " ,
" slug " : " reliable "
} ,
{
" text " : " Acceptable " ,
" slug " : " acceptable "
} ,
{
" text " : " Weak " ,
" slug " : " weak "
} ,
{
" text " : " Very Weak " ,
" slug " : " very-weak "
}
]
}
@ -1040,6 +1063,7 @@ transmitter_sync_swagger = swagger_auto_schema(
{
" id " : 51 ,
" full_name " : " Мухаммад ибн Якуб Кулейни " ,
" slug " : " zurarah-bin-ayan " ,
" biographical " : {
" full_name " : " Мухаммад ибн Якуб Кулейни " ,
" kunya " : None ,
@ -1111,6 +1135,7 @@ transmitter_sync_swagger = swagger_auto_schema(
{
" id " : 56 ,
" full_name " : " Абу Дауд ас-Сиджистани " ,
" slug " : " zurarah-bin-ayan " ,
" biographical " : {
" full_name " : " Абу Дауд ас-Сиджистани " ,
" kunya " : " Abu Daud " ,
@ -1368,6 +1393,7 @@ book_references_list_swagger = swagger_auto_schema(
{
" id " : 4 ,
" title " : " book2 " ,
" slug " : " al-mizan " ,
" rate " : " 1.20 " ,
" author " : [
{
@ -1385,6 +1411,7 @@ book_references_list_swagger = swagger_auto_schema(
{
" id " : 2 ,
" title " : " book " ,
" slug " : " al-mizan " ,
" rate " : " 1.20 " ,
" author " : [
{
@ -2026,55 +2053,35 @@ categories_tree_by_sect_swagger = swagger_auto_schema(
" slug " : " tafsir-al-fatiha " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" description " : " Commentary and interpretation of the opening chapter of the Quran " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 15
} ,
{
" id " : 330 ,
" title " : " Tafsir of Surah Al-Fatiha " ,
" id " : 331 ,
" title " : " Tafsir of Surah Al-Baqarah " ,
" source_type " : " quran " ,
" slug " : " tafsir-al-fatiha " ,
" slug " : " tafsir-al-baqarah " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" description " : " Detailed explanation of Surah Al-Baqarah verses and their meanings " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 15
" hadis_count " : 28
} ,
{
" id " : 330 ,
" title " : " Tafsir of Surah Al-Fatiha " ,
" source_type " : " quran " ,
" slug " : " tafsir-al-fatiha " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 15
} ,
{
" id " : 331 ,
" title " : " Tafsir of Surah Al-Baqarah " ,
" source_type " : " quran " ,
" slug " : " tafsir-al-baqarah " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 28
} ,
{
" id " : 332 ,
" title " : " Tafsir of Surah Al-Imran " ,
" source_type " : " quran " ,
" slug " : " tafsir-al-imran " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 22
}
{
" id " : 332 ,
" title " : " Tafsir of Surah Al-Imran " ,
" source_type " : " quran " ,
" slug " : " tafsir-al-imran " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" description " : " Interpretation of Surah Al-Imran with scholarly insights " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 22
}
]
}
@ -2173,6 +2180,7 @@ categories_tree_by_sect_source_swagger = swagger_auto_schema(
" slug " : " " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" description " : " Commentary and interpretation of the opening chapter of the Quran " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 10
@ -2184,6 +2192,7 @@ categories_tree_by_sect_source_swagger = swagger_auto_schema(
" slug " : " -16 " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" description " : " Detailed explanation of Surah Al-Baqarah verses and their meanings " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 10
@ -2195,6 +2204,7 @@ categories_tree_by_sect_source_swagger = swagger_auto_schema(
" slug " : " -32 " ,
" sect_id " : 20 ,
" sect_type " : " shia " ,
" description " : " Interpretation of Surah Al-Imran with scholarly insights " ,
" children_count " : 0 ,
" has_hadis " : True ,
" hadis_count " : 10