Giter Club home page Giter Club logo

quranapi's Introduction

Al Quran Rest API

N|Solid

Build Status Total Downloads Latest Stable Version License

A Simple Al Quran API

Cofiguration

Add .env file for database connection configuration.

Instalation

  • Import database.sql
  • Setup
    • composer install
    • php -S localhost:1337 -t public

Documentation

Method Endpoints Usage Example Description
GET /surat/{last}/{next} Menampilkan surat berdasarkan jumlah surat /surat/1/36 Menampilkan surat mulai dari 1 sampai 36.
GET /ayat/{id_surat}/{last}/{next} Menampilkan ayat berdasarkan id surat /ayat/2/15/10 Menampilkan 10 ayat mulai dari ayat 15 surat ke 2
# url /surat/1/3
  # Response
     [{
          "id":1,
          "nama_surat":"Al-Fatihah",
          "text_surat":"الفاتحة",
          "tejemahan_surat":"Pembukaan",
          "juml_ayat":7
       },
       {
          "id":2,
          "nama_surat":"Al-Baqarah",
          "text_surat":"البقرة",
          "tejemahan_surat":"Sapi",
          "juml_ayat":286
       },
       {
          "id":3,
          "nama_surat":"Ali 'Imran",
          "text_surat":"اٰل عمران",
          "tejemahan_surat":"Keluarga Imran",
          "juml_ayat":200
       }]
       
# url /ayat/114/0/6
  # Response
		[{
		      "id":6230,
		      "id_surat":114,
		      "ayat":1,
		      "text_ayat":"قُلْ اَعُوْذُ بِرَبِّ النَّاسِۙ",
		      "arti_ayat":"Katakanlah, “Aku berlindung kepada Tuhannya manusia,",
		      "latin_ayat":"qul a'ụżu birabbin-nās"
		   },
		   {
		      "id":6231,
		      "id_surat":114,
		      "ayat":2,
		      "text_ayat":"مَلِكِ النَّاسِۙ",
		      "arti_ayat":"Raja manusia,",
		      "latin_ayat":"malikin-nās"
		   },
		   {
		      "id":6232,
		      "id_surat":114,
		      "ayat":3,
		      "text_ayat":"اِلٰهِ النَّاسِۙ",
		      "arti_ayat":"sembahan manusia,",
		      "latin_ayat":"ilāhin-nās"
		   },
		   {
		      "id":6233,
		      "id_surat":114,
		      "ayat":4,
		      "text_ayat":"مِنْ شَرِّ الْوَسْوَاسِ ەۙ الْخَنَّاسِۖ",
		      "arti_ayat":"dari kejahatan (bisikan) setan yang bersembunyi,",
		      "latin_ayat":"min syarril-waswāsil-khannās"
		   },
		   {
		      "id":6234,
		      "id_surat":114,
		      "ayat":5,
		      "text_ayat":"الَّذِيْ يُوَسْوِسُ فِيْ صُدُوْرِ النَّاسِۙ",
		      "arti_ayat":"yang membisikkan (kejahatan) ke dalam dada manusia,",
		      "latin_ayat":"allażī yuwaswisu fī ṣudụrin-nās"
		   },
		   {
		      "id":6235,
		      "id_surat":114,
		      "ayat":6,
		      "text_ayat":"مِنَ الْجِنَّةِ وَالنَّاسِ",
		      "arti_ayat":"dari (golongan) jin dan manusia.”",
		      "latin_ayat":"minal-jinnati wan-nās"
		   }]

Licence

MIT

quranapi's People

Contributors

eggy4prlnt avatar dependabot[bot] avatar

Stargazers

Iqbal Taufiqurrochman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.