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

Finalize the API #16

Open
encukou opened this issue Jan 28, 2019 · 8 comments
Open

Finalize the API #16

encukou opened this issue Jan 28, 2019 · 8 comments
Labels

Comments

@encukou
Copy link
Member

encukou commented Jan 28, 2019

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
Copy link
Member Author

encukou commented Jan 28, 2019

cc @messa @vahalova

@messa
Copy link
Contributor

messa commented Feb 4, 2019

I've integrated the API with courseware: messa/pyladies-courseware@23105ae

🚀 Already deployed: projekty.pyladies.cz

So far so good 👍

@encukou
Copy link
Member Author

encukou commented Feb 16, 2019

@encukou
Copy link
Member Author

encukou commented Feb 27, 2019

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
Copy link
Member Author

encukou commented Apr 3, 2019

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

EDIT: No longer the case.

@encukou encukou transferred this issue from pyvec/naucse.python.cz Aug 23, 2019
@encukou encukou added the API label Aug 23, 2019
@encukou
Copy link
Member Author

encukou commented Jan 13, 2020

I'm planning to:

@encukou
Copy link
Member Author

encukou commented Jan 27, 2020

API version 0.2

The v0 URLs now serve API version 0.2. Changes:

  • Courses now have an etag, which will change when that course is updated. (Add an "ETag" to courses to make it easier to detect modifications #33)

  • Pages can now have a subtitle; for example the lesson "Instalace Pythonu" might have a subpage with:

    • title: "Instalace Pythonu – Linux" (as before)
    • subtitle: "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.)

@encukou
Copy link
Member Author

encukou commented Dec 28, 2020

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

No branches or pull requests

2 participants