Skip to content

Endpoints

Courses, lessons, exercises and checks, progress, explanations, offers and settings.

Applies to EngineCloud
View as Markdown
On this page
  1. Courses and lessons
  2. Exercises and checks
  3. Progress
  4. Explanations, offers and settings
  5. The engine

Courses and lessons

Method and pathDoes
GET /coursesCourses you can take, with your progress
GET /courses/{id}A course, its lessons and checkpoints
POST /coursesPublish a course folder, or a new version (admin)
DELETE /courses/{id}Take a course down (admin); progress is kept
GET /lessons/{id}?level=&language=&project=A lesson rendered for a level and language, with the items chosen from the project
GET /nextThe next lesson of your path

Exercises and checks

Method and pathDoes
POST /lessons/{id}/exercises{ project } → 201 the exercise, its branch and state
GET /exercises, GET /exercises/{id}Your exercises; one of them
POST /exercises/{id}/checkRun the checks on the branch’s last commit → 202 a run
GET /exercises/{id}/checksThe runs and the result of each check
POST /exercises/{id}/hintOne hint, at your level
POST /exercises/{id}/finish{ keep: true } opens a pull request; { keep: false } deletes the branch
POST /questions/{lesson}/{question}/answerAnswer a question (a person only)

Progress

Method and pathDoes
GET /progressWhat you have done
GET /progress/exportAll of it, as JSON
DELETE /progressDelete all of it, and the memory notes Learn wrote (a person only)

Explanations, offers and settings

Method and pathDoes
POST /explain{ item: { kind, ref }, level?, language? } → an explanation and the lessons that cover it. kind: diff, case, failure, trace, problem, table, column, log, code
GET /offersLessons offered to you right now
POST /offers/{id}/dismiss{ forever: true } never offers it again
GET /settings, PATCH /settingsoffers, offers_projects, teach_default, language, captions

The engine

Method and pathDoes
GET /health{ "status": "ok" }
/mcpthe MCP server (MCP)

The OpenAPI document is in the engine’s repository, at spec/openapi.yaml.

  1. Courses and lessons
  2. Exercises and checks
  3. Progress
  4. Explanations, offers and settings
  5. The engine

    Search pages, sections and terms