gadingnst / quran-api

Simple Quran API & Database with Indonesia Tafsir and media audio (murrotal) Syekh. Mishary Rashid Alafasy
https://api.quran.gading.dev
MIT License
756 stars 210 forks source link

return requested parameter(s) only (optional) #47

Closed Khuirul-Huda closed 1 year ago

Khuirul-Huda commented 2 years ago

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