🧪 Smoke-test: 10/10 PASSED — волна 1 + волна 2
Покрытие (10 сценариев): - pronunciation_pool_stress — утечка пула - hints_db_increment — списание подсказок - game_complete_level_full_flow — идемпотентность + score - wordquiz_correct_answer — total_score растёт - wordquiz_wrong_answer — current_mistakes растёт - bubblewords_complete_flow — levels + score - sentences_check_wrong — неверный ответ не начисляет - typing_progress_flow — typing_progress записан - users_set_language — app_language меняется - achievements_track_login — daily_logins растёт Результат: 10/10 PASSED за 0.79s. Робот подтверждает: большинство находок AI-ревью по этим разделам — галлюцинации. Инвентаризация: - scripts/dump_inventory.py — собирает эндпоинты + схему - endpoints_inventory.md — 105 эндпоинтов - database_schema.md — 40 таблиц
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
# 🛣 Все эндпоинты проекта
|
||||
|
||||
## achievements.py
|
||||
**Префикс:** `/achievements`
|
||||
|
||||
- `GET /achievements/user`
|
||||
- `POST /achievements/track-login`
|
||||
- `POST /achievements/track-teacher-menu`
|
||||
- `POST /achievements/track-progress`
|
||||
- `POST /achievements/track-cheatsheets`
|
||||
- `POST /achievements/track-pronunciation`
|
||||
- `POST /achievements/track-ai-assistant`
|
||||
- `POST /achievements/track-alphabet`
|
||||
- `POST /achievements/track-rules`
|
||||
|
||||
## admin.py
|
||||
**Префикс:** `/admin`
|
||||
|
||||
- `GET /admin/dashboard`
|
||||
- `GET /admin/sentry-errors`
|
||||
|
||||
## admin_content.py
|
||||
**Префикс:** `/admin/content`
|
||||
|
||||
- `GET /admin/content/summary`
|
||||
- `GET /admin/content/words/levels`
|
||||
- `GET /admin/content/words/level/{level}`
|
||||
- `GET /admin/content/words/word/{word_id}`
|
||||
- `PUT /admin/content/words/word/{word_id}`
|
||||
- `POST /admin/content/words/level/{level}`
|
||||
- `GET /admin/content/texts/levels`
|
||||
- `GET /admin/content/texts/level/{level}`
|
||||
- `GET /admin/content/texts/text/{text_id}`
|
||||
- `PUT /admin/content/texts/text/{text_id}`
|
||||
- `POST /admin/content/texts/level/{level}`
|
||||
- `GET /admin/content/lessons/levels`
|
||||
- `GET /admin/content/lessons/level/{level}/topics`
|
||||
- `GET /admin/content/lessons/topic/{topic_id}`
|
||||
- `GET /admin/content/lessons/lesson/{lesson_id}`
|
||||
- `PUT /admin/content/lessons/lesson/{lesson_id}`
|
||||
- `GET /admin/content/wrong-because`
|
||||
|
||||
## assistant.py
|
||||
**Префикс:** `/assistant`
|
||||
|
||||
- `POST /assistant/chat`
|
||||
- `POST /assistant/save-analytics`
|
||||
- `GET /assistant/stats/personal`
|
||||
- `GET /assistant/stats/admin`
|
||||
- `GET /assistant/limit`
|
||||
- `GET /assistant/history`
|
||||
- `POST /assistant/history/clear`
|
||||
|
||||
## bubblewords.py
|
||||
**Префикс:** `/bubblewords`
|
||||
|
||||
- `GET /bubblewords/next`
|
||||
- `POST /bubblewords/complete`
|
||||
- `GET /bubblewords/progress`
|
||||
|
||||
## feed.py
|
||||
**Префикс:** ``
|
||||
|
||||
- `GET /feed/{section}`
|
||||
- `GET /feed/post/{post_id}`
|
||||
- `POST /admin/feed/post`
|
||||
- `PUT /admin/feed/post/{post_id}`
|
||||
- `POST /admin/feed/post/{post_id}/delete`
|
||||
- `POST /admin/feed/upload-image`
|
||||
- `POST /admin/feed/translate`
|
||||
|
||||
## game.py
|
||||
**Префикс:** `/game`
|
||||
|
||||
- `GET /game/progress`
|
||||
- `GET /game/level/{level_number}`
|
||||
- `POST /game/check-word`
|
||||
- `POST /game/complete-level`
|
||||
|
||||
## hints.py
|
||||
**Префикс:** `/hints`
|
||||
|
||||
- `GET /hints/first-letter/{level_id}`
|
||||
- `GET /hints/word-list/{level_id}`
|
||||
- `GET /hints/remaining/{level_id}`
|
||||
|
||||
## leaderboard.py
|
||||
**Префикс:** `/leaderboard`
|
||||
|
||||
- `GET /leaderboard/admin/stats`
|
||||
- `GET /leaderboard/top`
|
||||
|
||||
## learning.py
|
||||
**Префикс:** `/learning`
|
||||
|
||||
- `GET /learning/levels`
|
||||
- `GET /learning/topics`
|
||||
- `GET /learning/topics/{topic_id}`
|
||||
- `GET /learning/lessons/{lesson_id}`
|
||||
- `GET /learning/test/{topic_id}`
|
||||
- `POST /learning/session/start`
|
||||
- `POST /learning/answer`
|
||||
- `POST /learning/session/complete`
|
||||
- `GET /learning/progress`
|
||||
- `POST /learning/analytics`
|
||||
- `GET /learning/ai/context`
|
||||
- `POST /learning/practice/start`
|
||||
|
||||
## pronunciation.py
|
||||
**Префикс:** `/pronunciation`
|
||||
|
||||
- `GET /pronunciation/next`
|
||||
|
||||
## sentences.py
|
||||
**Префикс:** `/sentences`
|
||||
|
||||
- `GET /sentences/{sentence_id}/hint`
|
||||
- `GET /sentences/next`
|
||||
- `POST /sentences/check`
|
||||
- `GET /sentences/stats`
|
||||
|
||||
## support.py
|
||||
**Префикс:** `/support`
|
||||
|
||||
- `POST /support/send`
|
||||
- `GET /support/user-tickets`
|
||||
- `GET /support/user-messages/{ticket_id}`
|
||||
- `GET /support/user-unread-count`
|
||||
- `POST /support/delete-ticket/{ticket_id}`
|
||||
- `GET /support/admin-tickets`
|
||||
- `GET /support/admin-messages/{ticket_id}`
|
||||
- `POST /support/admin-reply`
|
||||
- `GET /support/unread-count`
|
||||
- `POST /support/translate`
|
||||
|
||||
## teacher.py
|
||||
**Префикс:** `/teacher`
|
||||
|
||||
- `GET /teacher/phrase-of-day`
|
||||
- `POST /teacher/resume`
|
||||
- `POST /teacher/start`
|
||||
- `POST /teacher/answer`
|
||||
- `POST /teacher/explain`
|
||||
- `POST /teacher/examples`
|
||||
- `POST /teacher/free-message`
|
||||
- `POST /teacher/diagnostic-test`
|
||||
- `POST /teacher/translate-to-polish`
|
||||
- `GET /teacher/progress`
|
||||
- `POST /teacher/history/save`
|
||||
- `GET /teacher/history/load`
|
||||
- `POST /teacher/history/clear`
|
||||
|
||||
## typing.py
|
||||
**Префикс:** `/typing`
|
||||
|
||||
- `GET /typing/next`
|
||||
- `POST /typing/check`
|
||||
- `GET /typing/hint/{sentence_id}`
|
||||
- `GET /typing/progress`
|
||||
|
||||
## users.py
|
||||
**Префикс:** `/users`
|
||||
|
||||
- `POST /users/register`
|
||||
- `GET /users/me/is-admin`
|
||||
- `POST /users/set-language`
|
||||
- `POST /users/set-level`
|
||||
|
||||
## wordquiz.py
|
||||
**Префикс:** `/wordquiz`
|
||||
|
||||
- `GET /wordquiz/next`
|
||||
- `POST /wordquiz/check`
|
||||
- `GET /wordquiz/progress`
|
||||
Reference in New Issue
Block a user