Open encukou opened 5 years ago
cc @messa @vahalova
I've integrated the API with courseware: https://github.com/messa/pyladies-courseware/commit/23105ae48e87c2a0af01c576c3213f23ff4b8c06
π Already deployed: projekty.pyladies.cz
So far so good π
The v0
URLs now serve API version 0.1. There is one backwards compatible change:
Sessions now have 'serial'
: the βnumberβ of the lesson. This allows things like numbering sessions from zero, like in Brno's Monday course.
The serial is actually a string. It could be e.g. a Roman numeral (like XIV
). Don't use it for sorting. It also may be missing, if the session is not to be numbered.
Known consumers:
(If you want to use this in your course, update naucse_render
to 1.2+. See its changelog.)
I'm planning to clean up course slugs β replace slashes by dashes: pyvec/naucse#12
EDIT: No longer the case.
I'm planning to:
The v0
URLs now serve API version 0.2
. Changes:
Courses now have an etag, which will change when that course is updated. (#33)
Pages can now have a subtitle; for example the lesson "Instalace Pythonu"
might have a subpage with:
"Instalace Pythonu β Linux"
(as before)"Linux"
(Currently, no courses provide this info. If you want to use this in your course, update naucse_render to 1.3+. See its changelog.)
extra_lessons
key; include all lessons in the course metadata (#43)
The API is currently at version 0 ("beta"). It should get some real-world testing before it's finalized. Documentation is scarce; consult the JSON schema if the meaning of some field is not clear. If you use the API, please report individual issues or discuss on Slack if something is not right.
If you use the API, please subscribe to this issue to get change notifications. From version 1 there will be a backwards compatibility promise.