Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

JSON format wish list #32

Open
eddy-kwok opened this issue Aug 21, 2019 · 1 comment
Open

JSON format wish list #32

eddy-kwok opened this issue Aug 21, 2019 · 1 comment

Comments

@eddy-kwok
Copy link

With the current JSON, we need to parse the chapter number first before we get the verse value,
To avoid this, why not using below format ?

{
"verses":[
{ "verse": "Hereby perceive we the love of God, because he laid down his life for us: and we ought to lay down our lives for the brethren.\r\n",
"verse_nr": "16",
}
],
"book_ref": "1 Jhn",
"book_name": "1 John",
"book_nr": "62",
"chapter_nr": "3",
"direction": "LTR",
"type": "verse",
"version": "kjv"
}

If the API allow to query multiple chapters, use this format:

{
"chapters":[
{
"chapter_nr": "3",
"verses": [
{"verse": "Hereby perceive we the love of God, because he laid down his life for us: and we ought to lay down our lives for the brethren.\r\n",
"verse_nr": "16",
}
]
}],
"book_ref": "1 Jhn",
"book_name": "1 John",
"book_nr": "62",
"direction": "LTR",
"type": "chapter",
"version": "kjv"
}

@eddy-kwok eddy-kwok changed the title JSON format wish JSON format wish list Aug 21, 2019
@Llewellynvdm
Copy link
Member

Try version 2 it is the closest option, but it does not allow for multi verse qeries:

getBible API V2

translations

get list of translations

details
https://getbible.net/v2/translations.json

checksum
https://getbible.net/v2/checksum.json

get a translation

scripture
https://getbible.net/v2/kjv.json

validation (checksum)
https://getbible.net/v2/kjv.sha

Books

get list of books in translation

details
https://getbible.net/v2/kjv/books.json

checksum
https://getbible.net/v2/kjv/checksum.json

get a book in translation

scripture
https://getbible.net/v2/kjv/43.json

validation (checksum)
https://getbible.net/v2/kjv/43.sha

Chapters

get list of chapters in book in translation

details
https://getbible.net/v2/kjv/43/chapters

checksum
https://getbible.net/v2/kjv/43/checksum

get a chapters in book in translation

scripture
https://getbible.net/v2/kjv/43/1.json

validation (checksum)
https://getbible.net/v2/kjv/43/1.sha

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants