pyvec / naucse

A server for open course material
Other
2 stars 9 forks source link

Finalize the API #16

Open encukou opened 5 years ago

encukou commented 5 years ago

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.

encukou commented 5 years ago

cc @messa @vahalova

messa commented 5 years ago

I've integrated the API with courseware: https://github.com/messa/pyladies-courseware/commit/23105ae48e87c2a0af01c576c3213f23ff4b8c06

πŸš€ Already deployed: projekty.pyladies.cz

So far so good πŸ‘

encukou commented 5 years ago
encukou commented 5 years ago

API version 0.1 – session.serial

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.)

encukou commented 5 years ago

I'm planning to clean up course slugs – replace slashes by dashes: pyvec/naucse#12

EDIT: No longer the case.

encukou commented 4 years ago

I'm planning to:

encukou commented 4 years ago

API version 0.2

The v0 URLs now serve API version 0.2. Changes:

encukou commented 3 years ago