Current api uses query parameters over path parameters.
Create a new api version that uses both for more human readable urls and that are easier to use.
Tasks
Use path parameters for the book, chapter, and verse. (/api/v2/bible/book/chapter/verse)
/api/v2/bible/genesis/1/1
Provide bible_version and book_group as query parameters as is the current case. bible_version defaults to NIV and book_group defaults to Any.
/api/v2/bible/genesis/1/1-2?bible_version=NIV
Provide a boolean query parameter, strict, that toggles whether to strictly check if the book given is in the book_group specified. strict defaults to False if not given. If strict is False, then the book is used and the book_group ignored.
The random verse will be mapped to the endpoint /api/v2/bible/random/book/chapter. It will accept book, chapter and verse path parameters and bible_version, book_group , strict and verse_range query parameters. The verse_range query parameter can be set to determine the number of verses to return. verse range defaults to 1.
Current api uses query parameters over path parameters. Create a new api version that uses both for more human readable urls and that are easier to use.
Tasks
book
,chapter
, andverse
. (/api/v2/bible/book/chapter/verse
)bible_version
andbook_group
as query parameters as is the current case.bible_version
defaults to NIV andbook_group
defaults to Any.strict
, that toggles whether to strictly check if the book given is in thebook_group
specified.strict
defaults to False if not given. If strict is False, then the book is used and the book_group ignored./api/v2/bible/random/book/chapter
. It will acceptbook
,chapter
andverse
path parameters andbible_version
,book_group
,strict
andverse_range
query parameters. Theverse_range
query parameter can be set to determine the number of verses to return.verse range
defaults to 1./api/v2/bible/today
. Accepts thebible_version
query parameter.