|
|
|
@ -75,7 +75,13 @@ hadis_category_tree_swagger = swagger_auto_schema( |
|
|
|
"sect_type": "shia", |
|
|
|
"title": "Shi'a Collections", |
|
|
|
"description": "Shia roots", |
|
|
|
"order": 1 |
|
|
|
"order": 1, |
|
|
|
"source_types": [ |
|
|
|
"hadith", |
|
|
|
"quran", |
|
|
|
"quote" |
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
"categories": [ |
|
|
|
@ -105,13 +111,6 @@ hadis_category_tree_swagger = swagger_auto_schema( |
|
|
|
"thumbnail": None, |
|
|
|
"xmind_file": None, |
|
|
|
"has_xmind_file": False, |
|
|
|
"father_category": { |
|
|
|
"id": 10, |
|
|
|
"name": "Tafsir", |
|
|
|
"sect_id": 1, |
|
|
|
"sect_type": "shia", |
|
|
|
"source_type": "quran" |
|
|
|
}, |
|
|
|
"children_count": 3, |
|
|
|
"children": [] |
|
|
|
} |
|
|
|
@ -126,7 +125,12 @@ hadis_category_tree_swagger = swagger_auto_schema( |
|
|
|
"sect_type": "sunni", |
|
|
|
"title": "Sunni Collections", |
|
|
|
"description": "Sunni roots", |
|
|
|
"order": 2 |
|
|
|
"order": 2, |
|
|
|
"source_types": [ |
|
|
|
"hadith", |
|
|
|
"quran", |
|
|
|
"quote" |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
"categories": [ |
|
|
|
@ -640,60 +644,78 @@ hadis_transmitters_swagger = swagger_auto_schema( |
|
|
|
description="Successful retrieval of the transmission chain.", |
|
|
|
examples={ |
|
|
|
"application/json": { |
|
|
|
"id": 1800, |
|
|
|
"layer_count": 3, |
|
|
|
"id": 1830, |
|
|
|
"layer_count": 2, |
|
|
|
"layer_names": [ |
|
|
|
"Students of the Imams", |
|
|
|
"Minor Narrators" |
|
|
|
], |
|
|
|
"results": [ |
|
|
|
{ |
|
|
|
"id": 5992, |
|
|
|
"order": 1, |
|
|
|
"is_gap": False, |
|
|
|
"narrator_layer_description": "Companions of the Prophet (Sahaba)", |
|
|
|
"layer": "sahaba", |
|
|
|
"transmitter": { |
|
|
|
"id": 53, |
|
|
|
"full_name": "Abu Hurairah", |
|
|
|
"birth_year_hijri": 18, |
|
|
|
"death_year_hijri": 59, |
|
|
|
"known_as": "Father of the Kitten", |
|
|
|
"nickname": None, |
|
|
|
"reliability": "very_reliable", |
|
|
|
} |
|
|
|
"id": 6609, |
|
|
|
"order": 0, |
|
|
|
"is_gap": False, |
|
|
|
"narrator_layer_description": "Lesser known narrators", |
|
|
|
"layer": "minor-narrators", |
|
|
|
"transmitter": { |
|
|
|
"id": 90, |
|
|
|
"full_name": "Sahl bin Ziyad", |
|
|
|
"birth_year_hijri": 'null', |
|
|
|
"death_year_hijri": 255, |
|
|
|
"known_as": 'null', |
|
|
|
"nickname": 'null', |
|
|
|
"reliability": 10 |
|
|
|
}, |
|
|
|
"status": { |
|
|
|
"id": 10, |
|
|
|
"title": "Weak", |
|
|
|
"slug": "weak", |
|
|
|
"color": "orange" |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": 5993, |
|
|
|
"order": 2, |
|
|
|
"is_gap": False, |
|
|
|
"narrator_layer_description": "Successors (Tabi'un)", |
|
|
|
"layer": "tabiun", |
|
|
|
"transmitter": { |
|
|
|
"id": 60, |
|
|
|
"full_name": "Sa'id ibn al-Musayyib", |
|
|
|
"birth_year_hijri": 15, |
|
|
|
"death_year_hijri": 94, |
|
|
|
"known_as": "Sheikh of the Tabi'un", |
|
|
|
"nickname": None, |
|
|
|
"reliability": "reliable", |
|
|
|
"madhhab": "sunni", |
|
|
|
"generation": 2 |
|
|
|
} |
|
|
|
"id": 6610, |
|
|
|
"order": 1, |
|
|
|
"is_gap": False, |
|
|
|
"narrator_layer_description": "Lesser known narrators", |
|
|
|
"layer": "minor-narrators", |
|
|
|
"transmitter": { |
|
|
|
"id": 87, |
|
|
|
"full_name": "Yunus bin Abd al-Rahman", |
|
|
|
"birth_year_hijri": 'null', |
|
|
|
"death_year_hijri": 208, |
|
|
|
"known_as": 'null', |
|
|
|
"nickname": 'null', |
|
|
|
"reliability": 7 |
|
|
|
}, |
|
|
|
"status": { |
|
|
|
"id": 7, |
|
|
|
"title": "Very Reliable", |
|
|
|
"slug": "very-reliable", |
|
|
|
"color": "green" |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": 5995, |
|
|
|
"order": 3, |
|
|
|
"is_gap": True, |
|
|
|
"narrator_layer_description": None, |
|
|
|
"layer": None, |
|
|
|
"transmitter": { |
|
|
|
"id": 59, |
|
|
|
"full_name": "Unknown Person", |
|
|
|
"birth_year_hijri": None, |
|
|
|
"death_year_hijri": None, |
|
|
|
"known_as": None, |
|
|
|
"nickname": None, |
|
|
|
"reliability": "unknown", |
|
|
|
"madhhab": "unknown", |
|
|
|
"generation": None |
|
|
|
} |
|
|
|
"id": 6611, |
|
|
|
"order": 2, |
|
|
|
"is_gap": False, |
|
|
|
"narrator_layer_description": "Direct students of the Imams", |
|
|
|
"layer": "students-of-the-imams", |
|
|
|
"transmitter": { |
|
|
|
"id": 84, |
|
|
|
"full_name": "Zurarah bin Ayan", |
|
|
|
"birth_year_hijri": 'null', |
|
|
|
"death_year_hijri": 150, |
|
|
|
"known_as": 'null', |
|
|
|
"nickname": 'null', |
|
|
|
"reliability": 7 |
|
|
|
}, |
|
|
|
"status": { |
|
|
|
"id": 7, |
|
|
|
"title": "Very Reliable", |
|
|
|
"slug": "very-reliable", |
|
|
|
"color": "green" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
|