Base URL
Authentication
Login POST

Request:

/login

{
    "email": EMAIL,
    "password": PASSWORD
}

                        

Response:


{
    "error": false,
    "message": null,
    "data": {
        "user": {
            "name": "Test User 123",
            "email": "test123@gmail.com",
            "avatar": "http://localhost:8000/assets/avatar/5.png"
        },
        "token": "10|laravel_sanctum_jYnuff4ds5sSU3ED3rh0cYNjcz3WiwKX5mdgKZLqce9b1897"
    }
}

                        
Register POST

Request:

/register

{
    "name": NAME,
    "email": EMAIL,
    "password": PASSWORD
}

                        

Response:


{
    "error": false,
    "message": "Registrasi berhasil",
    "data": null
}

                        
User WITH TOKEN
Get User Detail GET

Request:

/user

Response:


{
    "error": false,
    "message": null,
    "data": {
        "name": "Test User 123",
        "email": "test123@gmail.com",
        "avatar": "http://localhost:8000/assets/avatar/5.png",
        "ranking": 1,
        "point": 300,
        "task_complete": 3
    }
}

                        
Point WITH TOKEN
Add Point User POST

Request:

/point

{
    "value": 100,
}

                        

Response:


{
    "error": false,
    "message": "Point berhasil ditambahkan",
    "data": null
}

                        
Get Leaderboard GET

Request:

/leaderboard

Response:


{
    "error": false,
    "message": null,
    "data": [
        {
            "rangking": 1,
            "user_id": 4,
            "name": "Test User 123",
            "point": "500"
        }
    ]
}

                        
Tajweed WITH TOKEN
Get All Tajweeds GET

Request:

/tajweeds

Response:


{
    "error": false,
    "message": null,
    "data": [
        {
            "id": 3,
            "title": "Test 1",
            "icon": "http://localhost:8000/storage/images/mQlZXxJlo4OmptQj9VBv1dMyIKuZZmqoU1MSUkxA.png",
            "contents": [
                {
                    "id": 2,
                    "name": "Test 2",
                    "description": "Lorem ipsum dolor",
                    "example_url": "http://localhost:8000/storage/images/NT8tbDMadBYFweMHye6CMGq0oFnSTfs4A6Yz6Wf3.png",
                    "tajweed_letter_url": "http://localhost:8000/storage/images/ypUPDv99eN114mEK7gRGSDlChdGhhRIrYiesYhLe.png",
                    "audio_url": "http://localhost:8000/storage/audios/T9YZCOOHxRfmlgFqvAGW20eiB71HvwR9xIRbI6bW.mp3"
                }
            ]
        }
    ]
}

                        
Get Tajweed by ID GET

Request:

/tajweed/{id}

Response:


{
    "error": false,
    "message": null,
    "data": {
        "id": 2,
        "name": "Test 2",
        "description": "Lorem ipsum dolor",
        "example_url": "http://localhost:8000/storage/images/NT8tbDMadBYFweMHye6CMGq0oFnSTfs4A6Yz6Wf3.png",
        "tajweed_letter_url": "http://localhost:8000/storage/images/ypUPDv99eN114mEK7gRGSDlChdGhhRIrYiesYhLe.png",
        "audio_url": "http://localhost:8000/storage/audios/T9YZCOOHxRfmlgFqvAGW20eiB71HvwR9xIRbI6bW.mp3"
    }
}

                        
Tafsir WITH TOKEN
Get All Tafsir GET

Request:

/tafsirs

Response:


{
    "error": false,
    "message": null,
    "data": [
        {
            "id": 1,
            "image": "http://localhost:8000/storage/images/971Yz11FMDl3blDooQi3F6kAHJdcukgsztMGCqMj.png"
        }
    ]
}

                        
Al-Qur'an WITH TOKEN
Get List Surah GET

Request:

/surah

Response:


{
    "error": false,
    "message": null,
    "data": [
         {
            "id": 1,
            "short_name": "الفاتحة",
            "name": "Al-Fatihah",
            "revelation": "Makkiyyah",
            "ayat": 7,
            "translation": "Pembukaan"
        },
    ]
}

                        
Get Surah by Id GET

Request:

/surah/{surah_id}

Response:


{
    "error": false,
    "message": null,
    "data": {
        "id": 1,
        "ayat": 7,
        "short_name": "الفاتحة",
        "name": "Al-Fatihah",
        "revelation": "Makkiyyah",
        "verses": [
            {
                "number": 1,
                "text_arab": "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ",
                "translation": "Dengan nama Allah Yang Maha Pengasih, Maha Penyayang.",
                "audio": "https://cdn.islamic.network/quran/audio/128/ar.alafasy/1.mp3"
            }
        ]
    }
}

                        
Hadist WITH TOKEN
Get List Hadist Abu Daud (20) GET

Request:

/hadist

Response:


{
    "error": false,
    "message": null,
    "data": {
        "name": "HR. Abu Daud",
        "id": "abu-daud",
        "available": 4419,
        "requested": 20,
        "hadiths": [
            {
                "number": 1,
                "arab": "حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ بْنِ قَعْنَبٍ الْقَعْنَبِيُّ حَدَّثَنَا عَبْدُ الْعَزِيزِ يَعْنِي ابْنَ مُحَمَّدٍ عَنْ مُحَمَّدٍ يَعْنِي ابْنَ عَمْرٍو عَنْ أَبِي سَلَمَةَ عَنْ الْمُغِيرَةِ بْنِ شُعْبَةَأَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا ذَهَبَ الْمَذْهَبَ أَبْعَدَ",
                "id": "Telah menceritakan kepada kami [Abdullah bin Maslamah bin Qa'nab al Qa'nabi] telah menceritakan kepada kami [Abdul Aziz yakni bin Muhammad] dari [Muhammad yakni bin Amru] dari [Abu Salamah] dari [Al Mughirah bin Syu'bah] bahwasanya Nabi shallallahu 'alaihi wasallam apabila hendak pergi untuk buang hajat, maka beliau menjauh."
            }
        ]
    }
}

                        
Jadwal Waktu Sholat WITH TOKEN
Get Jadwal Sholat by Lokasi GET

Request:

/jadwal-sholat/{city}

Response:


{
    "error": false,
    "message": null,
    "data": {
        "national_date": "Jumat, 15 September 2023",
        "hijriah_date": "14 Ṣafar 1436H",
        "times": {
            "Fajr": "04:17",
            "Sunrise": "05:32",
            "Dhuhr": "11:34",
            "Asr": "14:48",
            "Sunset": "17:36",
            "Maghrib": "17:36",
            "Isha": "19:06",
            "Imsak": "04:07",
            "Midnight": "23:34",
            "Firstthird": "21:34",
            "Lastthird": "01:33"
        }
    }
}

                        
Sholat WITH TOKEN
Get List Gerakan Sholat GET

Request:

/sholat

Response:


{
    "error": false,
    "message": null,
    "data": [
        {
            "id": 1,
            "title": "Takbiratul Ikram",
            "image_url": "http://localhost:8000/storage/images/nxUxD2ifyBfv3XRtqB0O0hazhXQ8m4OyaJ1tO0Y9.png",
            "description": "Lorem ipsum dolor",
            "movement_angle": {
                "left_wrist": 45,
                "left_elbow": 0,
                "left_shoulder": 45,
                "left_hip": 0,
                "left_knee": 45,
                "left_ankle": 0,
                "right_wrist": 0,
                "right_elbow": 0,
                "right_shoulder": 0,
                "right_hip": 0,
                "right_knee": 0,
                "right_ankle": 0
            }
        }
    ]
}

                        
Video WITH TOKEN
Get List Video Short GET

Request:

/videos

Response:


{
    "error": false,
    "message": null,
    "data": [
        {
            "id": 4,
            "title": "TEST 1",
            "info": "Youtube",
            "video_url": "http://localhost:8000/storage/videos/ExtcLN5CSaMsqxu335Gr5wKhYQJ6FPxH9mvWj7bD.mp4"
        }
    ]
}