Adventech / sabbath-school-lessons

📖 The Lessons for every language
MIT License
100 stars 114 forks source link

Sabbath School Lesson API #1076

Closed iCodeOkay closed 5 years ago

iCodeOkay commented 5 years ago

I've just come across your Sabbath School Lesson API and tried playing around with it.

Getting the languages seemed easy and straight forward by visiting https://sabbath-school-stage.adventech.io/api/v1/languages/index.json, as described in the docs.

I wasn't successful in calling any of the other functions (e.g. listing the quarterlies).

To list the quarterlies, I tried a GET request on the following URL: https://sabbath-school-stage.adventech.io/api/v1/en/quarterlies, but I received the following error:

404 Not Found
Code: NoSuchKey
Message: The specified key does not exist.

Would you be kind enough to assist me with this issue?

I apologise if this is the wrong forum to ask this question or if I'm missing something obvious.

Thank you for your help.

VitalikL commented 5 years ago

@iCodeOkay All other endpoints have to end with index.json as well. So for the quarterlies endpoint use https://sabbath-school-stage.adventech.io/api/v1/en/quarterlies/index.json

iCodeOkay commented 5 years ago

🤦‍♂ 'doh....

Thank you 🙂