Sefaria / Sefaria-Project

New Interfaces for Jewish Texts
https://www.sefaria.org
657 stars 271 forks source link

/api/texts next/previous jump by top level section, even if the ref is more granular #617

Open ronshapiro opened 3 years ago

ronshapiro commented 3 years ago
nsantacruz commented 3 years ago

@EliezerIsrael what do you think of this suggestion? It seems the use case for next and previous is so that the client knows what valid refs can be requested to get next / prev content. So if you request ?context=0 you can expect the client will want to request the next segment ref.