试卷 JSON 输出案例
输入卷子 ID,返回与智能出卷 API 中 `exam_content` 完全一致的 JSON,可预览或导出。
等待输入 paper_id ...
@foreach ($apiGroups as $group)
{{ $group['name'] }}
自动从 routes/api.php 生成。
@foreach ($group['items'] as $item)
{{ $item['method'] }} {{ $item['path'] }} @if (!empty($item['tag'])) {{ $item['tag'] }} @endif 点击展开
参数:{{ $item['params'] }}
响应:{{ $item['response'] }}
@if (!empty($item['details']['description']))
说明:{{ $item['details']['description'] }}
@endif @if (!empty($item['details']['route_name']))
路由名:{{ $item['details']['route_name'] }}
@endif @if (!empty($item['details']['action']))
Action:{{ $item['details']['action'] }}
@endif @if (!empty($item['details']['examples']))
示例:
{{ implode("\n", $item['details']['examples']) }}
@endif
@endforeach
@endforeach