自由進度学習支援システム REST API ドキュメント
このAPIはJWT (JSON Web Token) 認証を使用します。
POST /api/auth/login でJWTトークンを取得Authorization: Bearer {token} を付与Swagger UIでの認証方法:
Bearerプレフィックスなし)curl -X POST https://e8efc4f3.jiyushindo-gakushu.pages.dev/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"username": "tanaka_taro",
"password": "your_password"
}'
curl -X GET https://e8efc4f3.jiyushindo-gakushu.pages.dev/api/adaptive/detect-learning-style/42 \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
curl -X POST https://e8efc4f3.jiyushindo-gakushu.pages.dev/api/progress \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"card_id": 101,
"student_answer": "45 cm²",
"time_spent_seconds": 120,
"hint_used": false,
"confidence_level": "high"
}'