Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single call for multiple paragraphs #2

Open
jcuenod opened this issue Jan 22, 2016 · 2 comments
Open

Single call for multiple paragraphs #2

jcuenod opened this issue Jan 22, 2016 · 2 comments

Comments

@jcuenod
Copy link

jcuenod commented Jan 22, 2016

Is there a call that returns a full book?

@jtauber
Copy link
Member

jtauber commented Jan 22, 2016

there isn't at the moment but the API could be designed to provide it

@jtauber
Copy link
Member

jtauber commented Jan 22, 2016

https://github.com/jtauber/greek-reader has code for retrieving verses based on ranges. That could be exposed in the API too so you could get it to return, say, John 1.1–18.

But another, even easier-to-implement feature would just be paragraph ranges.

It could just reuse the paragraph URL but with a - in the ID:

/v0/paragraph/{paragraph_id_1}-{paragraph_id_2}.json

or it could be a new URL path

/v0/paragraphs/{paragraph_id_1}-{paragraph_id_2}.json

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

No branches or pull requests

2 participants