Initial commit

This commit is contained in:
Eugenius Naumenko
2026-06-07 22:20:57 +00:00
commit a7d8f72129
357 changed files with 168337 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# API
Base URL in local development: `http://localhost:8080`
## Auth
- `POST /auth/register`
- `POST /auth/login`
- `POST /auth/logout`
Successful register/login returns a bearer token. Send it as:
```txt
Authorization: Bearer <token>
```
## Learner
- `GET /me`
- `PATCH /me/preferences`
- `GET /dashboard`
- `GET /progress`
## Languages
- `GET /languages`
- `GET /languages/{code}/voices`
## Lessons and Practice
- `POST /lessons/next`
- `POST /practice/attempts`
`POST /practice/attempts` expects multipart form data:
- `exercise_id`
- `audio`
## Conversation
- `POST /conversation/start`
- `POST /conversation/{id}/turn`