1e51ef7def
- Konzept/, didaktik_geografie/, didaktik_simulation/, v2-modules/, v2-platform/ - 12 code-workspace-Files - STATUS-*.md - viele M/D/R-Änderungen an bereits getrackten Files - .gitignore verstärkt: **/.humaninput/, **/secret_keys.txt Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
26 lines
1.2 KiB
PHP
26 lines
1.2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
require_once __DIR__ . '/../../lib/bootstrap.php';
|
|
|
|
$method = v2_validate_method_in(['GET', 'PATCH']);
|
|
v2_auth_require('teacher');
|
|
|
|
if ($method === 'GET') {
|
|
mock_log('GET /api/teacher/students', ['classId' => $_GET['classId'] ?? null]);
|
|
v2_response_ok(['students' => [
|
|
['id'=>42,'username'=>'lena','displayName'=>'Lena','avatarSlug'=>'fuchs-explorer',
|
|
'easyLanguage'=>false,'highContrast'=>false,'reducedMotion'=>false,'screenReader'=>false,
|
|
'nachteilsausgleich'=>false,'lastLogin'=>date('c', time()-3600)],
|
|
['id'=>43,'username'=>'yusuf','displayName'=>'Yusuf','avatarSlug'=>'eule-prof',
|
|
'easyLanguage'=>true,'highContrast'=>false,'reducedMotion'=>false,'screenReader'=>false,
|
|
'nachteilsausgleich'=>false,'lastLogin'=>date('c', time()-7200)],
|
|
['id'=>44,'username'=>'sofia','displayName'=>'Sofia','avatarSlug'=>'astronaut',
|
|
'easyLanguage'=>false,'highContrast'=>true,'reducedMotion'=>true,'screenReader'=>true,
|
|
'nachteilsausgleich'=>true,'lastLogin'=>date('c', time()-1800)],
|
|
]]);
|
|
}
|
|
|
|
$body = v2_request_body_json_required();
|
|
mock_log('PATCH /api/teacher/students', $body);
|
|
v2_response_ok(['ok' => true, '_mock' => 'Änderung NICHT persistiert.']);
|