GET/v1/me/vocabulary/lists
Example
curl -sS -X GET 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists' -H 'Authorization: Bearer <token>'
Description
Summaries of vocabulary lists visible to the caller.
POST/v1/me/vocabulary/lists
Example
curl -sS -X POST 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists' -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' -d '{"title":"Week 1","entries":[{"headword":"Haus"}]}'
Description
Create list — supply exactly one of `text` lines or structured `entries`. Each entry is resolved via the Lexicon before save (cached `headword` + `partOfSpeech` plus `lemmaId` / `proposalId`).
Params
*title (body, string)
text (body, string)
entries (body, { headword | lemma | lemmaId | token, partOfSpeech? }[] (exactly one key per row besides optional POS))
GET/v1/me/vocabulary/lists/:listId
Example
curl -sS -X GET 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists/list-id-placeholder' -H 'Authorization: Bearer <token>'
Description
Single list with entries (share metadata for teacher owners).
Params
*listId (path, string)
PATCH/v1/me/vocabulary/lists/:listId
Example
curl -sS -X PATCH 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists/list-id-placeholder' -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' -d '{"title":"Renamed"}'
Description
Rename list and/or replace entries.
Params
*listId (path, string)
title (body, string)
text (body, string)
entries (body, { headword | lemma | lemmaId | token, partOfSpeech? }[])
DELETE/v1/me/vocabulary/lists/:listId
Example
curl -sS -X DELETE 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists/list-id-placeholder' -H 'Authorization: Bearer <token>'
Description
Delete list and contained entries.
Params
*listId (path, string)
POST/v1/me/vocabulary/lists/:listId/entries
Example
curl -sS -X POST 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists/list-id-placeholder/entries' -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' -d '{"entries":[{"headword":"Schule","partOfSpeech":"N"}]}'
Description
Append vocabulary rows (resolved headword + optional POS; or `lemmaId`).
Params
*listId (path, string)
*entries (body, { headword | lemma | lemmaId | token, partOfSpeech? }[])
PATCH/v1/me/vocabulary/lists/:listId/entries/:entryId
Example
curl -sS -X PATCH 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists/list-id-placeholder/entries/entry-id-placeholder' -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' -d '{"headword":"laufen"}'
Description
Patch one vocabulary row.
Params
*listId (path, string)
*entryId (path, string)
headword (body, string)
lemma (body, string (alias of headword))
lemmaId (body, string)
token (body, string)
partOfSpeech (body, string)
DELETE/v1/me/vocabulary/lists/:listId/entries/:entryId
Example
curl -sS -X DELETE 'http://beta-user.lernlaterne.de/v1/me/vocabulary/lists/list-id-placeholder/entries/entry-id-placeholder' -H 'Authorization: Bearer <token>'
Description
Remove one vocabulary row.
Params
*listId (path, string)
*entryId (path, string)