return requested parameter(s) only (optional)
Khuirul-Huda opened this issue · comments
Feature Request
Example 1
i need the name.short
and translation.en
from endpoint /surah
API response:
{
"code": 200,
"status": "OK.",
"message": "Success fetching all surah.",
"data": [
{
"name": {
"short": "الفاتحة",
"translation": {
"en": "The Opening",
}
},
}
]
}
Example 2
i need all data except tafsir
from endpoint /surah
API response:
{
"code": 200,
"status": "OK.",
"message": "Success fetching all surah.",
"data": [
{
"number": 1,
"sequence": 5,
"numberOfVerses": 7,
"name": {
"short": "الفاتحة",
"long": "سُورَةُ ٱلْفَاتِحَةِ",
"transliteration": {
"en": "Al-Faatiha",
"id": "Al-Fatihah"
},
"translation": {
"en": "The Opening",
"id": "Pembukaan"
}
},
"revelation": {
"arab": "مكة",
"en": "Meccan",
"id": "Makkiyyah"
},
}
]
}
and other endpoints
Why
- reduce bandwidth & data usage
- reduce server processing time (also server response time) (maybe?)