639 B
639 B
API
Base URL in local development: http://localhost:8080
Auth
POST /auth/registerPOST /auth/loginPOST /auth/logout
Successful register/login returns a bearer token. Send it as:
Authorization: Bearer <token>
Learner
GET /mePATCH /me/preferencesGET /dashboardGET /progress
Languages
GET /languagesGET /languages/{code}/voices
Lessons and Practice
POST /lessons/nextPOST /practice/attempts
POST /practice/attempts expects multipart form data:
exercise_idaudio
Conversation
POST /conversation/startPOST /conversation/{id}/turn