Coder Social home page Coder Social logo

cicacode / api-alkitab Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.87 MB

API Alkitab Indonesia - Backend Alkitab bahasa Indonesia based on sabda.org

Home Page: https://github.com/erwindosianipar/api-alkitab

License: MIT License

Go 88.08% HTML 11.08% Dockerfile 0.84%
api-alkitab-indonesia passage alkitab api bible bible-api bible-server bible-study api-bible

api-alkitab's Introduction

API Alkitab Indonesia

GitHub Workflow Status Travis (.com) codecov Github Heroku deployed GitHub GitHub go.mod Go version GitHub code size in bytes GitHub forks GitHub last commit Uptime Robot ratio (7 days) FOSSA Status

API Alkitab Indonesia adalah sebuah third-party backend Alkitab yang sumber bacaannya berasal dari sabda.org.

sabda.org adalah sebuah Yayasan Kristen non-profit dan non-komersial yang bergerak dalam bidang pelayanan media komputer dan internet di Indonesia.

Dokumentasi

Versi saat (v2.0.0) masih mempunyai dua fitur utama untuk menampilkan ayat dan pasal Alkitab.

Passage and Chapter

Untuk menampilkan kitab dan pasal Alkitab gunakan passage/{passage}/{chapter} dengan mengirim request nama kitab dan nomor pasal.

Base URL

Version URL
v2 https://api-alkitab.herokuapp.com/v2/passage/{chapter}/{chapter}?ver={ver}
v1 https://api-alkitab.herokuapp.com/v1/passage/{chapter}/{chapter}
Variabel Keterangan Tipe data Required
passage Adalah kitab yang ingin ditampilkan. Menerima berbagai format dalam bahasa Indonesian dan Inggris (Yohanes, Yoh, John, dll). string Yes
chapter Adalah nomor pasal yang ingin ditampilkan dari bagian Alkitab int Yes
ver Adalah versi pilihan bahasa tb (terjemahan baru) default, bis (bahasa Indonesia sehari-hari), net (bahasa Inggris) string No

Example

Version Method URL
v2 GET https://api-alkitab.herokuapp.com/v2/passage/Yoh/1?ver=tb
v1 GET https://api-alkitab.herokuapp.com/v1/passage/Yoh/1

Response v2

{
    "title": "Yohanes 1:1-51",
    "book_number": 43,
    "chapter": 1,
    "verses": [
        {
            "verse": 1,
            "content": "Pada mulanya adalah Firman; Firman itu bersama-sama dengan Allah dan Firman itu adalah Allah."
        },
        {
            "verse": 2,
            "content": "Ia pada mulanya bersama-sama dengan Allah."
        }
    ]
}

Response v1

{
    "message": "success to fetching data",
    "response": {
        "title": "Yohanes 1:1-51",
        "passage": [
            {
                "book_id": 43,
                "title": "Yohanes 1:1-51",
                "chapter": {
                    "chap": 1,
                    "verses": {
                        "verse": [
                            {
                                "number": 1,
                                "text": "Pada mulanya adalah Firman; Firman itu bersama-sama dengan Allah dan Firman itu adalah Allah."
                            },
                            {
                                "number": 2,
                                "text": "Ia pada mulanya bersama-sama dengan Allah."
                            }
                        ]
                    }
                }
            }
        ]
    },
    "status": 200
}

Passage, Chapter, and Verse

Untuk membaca satu ayat Alkitab gunakan passage/{passage}/{chapter}/{verse} dengan mengirim nama kitab, nomor pasal dan nomor ayat Alkitab.

Base URL

Version URL
v2 https://api-alkitab.herokuapp.com/v2/passage/{passage}/{chapter}/{verse}?ver={tb}
v1 https://api-alkitab.herokuapp.com/v1/passage/{passage}/{chapter}/{verse}
Variabel Keterangan Tipe data Required
passage Adalah kitab yang ingin ditampilkan. Menerima berbagai format dalam bahasa Indonesian dan Inggris (Yohanes, Yoh, John, dll). string Yes
chapter Adalah nomor pasal yang ingin ditampilkan dari bagian Alkitab int Yes
verse Adalah nomor ayat dari bagian pasal/bab yang ingin ditampilkan int Yes
ver Adalah versi pilihan bahasa tb (terjemahan baru) default, bis (bahasa Indonesia sehari-hari), net (bahasa Inggris) string No

Example

Version Method URL
v2 GET https://api-alkitab.herokuapp.com/v2/passage/Yoh/1/1?ver=tb
v1 GET https://api-alkitab.herokuapp.com/v1/passage/Yoh/1/1

Response v2

{
    "title": "Yohanes 1:1",
    "book_number": 43,
    "chapter": 1,
    "verses": [
        {
            "verse": 1,
            "content": "Pada mulanya adalah Firman; Firman itu bersama-sama dengan Allah dan Firman itu adalah Allah."
        }
    ]
}

Response v1

{
    "message": "success to fetching data",
    "response": {
        "title": "Yohanes 1:1",
        "passage": [
            {
                "book_id": 43,
                "title": "Yohanes 1:1",
                "chapter": {
                    "chap": 1,
                    "verses": {
                        "verse": [
                            {
                                "number": 1,
                                "text": "Pada mulanya adalah Firman; Firman itu bersama-sama dengan Allah dan Firman itu adalah Allah."
                            }
                        ]
                    }
                }
            }
        ]
    },
    "status": 200
}

Status Code

API mengembalikan beberapa status code sebagai berikut:

Status Code Keterangan
200 OK
201 CREATED
400 BAD REQUEST
404 NOT FOUND
500 INTERNAL SERVER ERROR

Author

API Alkitab Indonesia ini dibuat oleh Erwindo Sianipar. Untuk pertanyaan kritik dan saran, silahkan drop email ke [email protected].

License

API Alkitab Indonesia released under the MIT License.

Copyright (c) 2020 Erwindo Sianipar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Kemuliaan bagi Tuhan saja - Soli Deo Gloria

FOSSA Status

api-alkitab's People

Contributors

erwindosianipar avatar fossabot 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.