@include('scramble::dev-tools', ['renderer' => 'elements'])
@php $verifMethods = ['get', 'post', 'put', 'patch', 'delete']; $verifGroups = []; foreach (($spec['paths'] ?? []) as $verifPath => $verifItem) { foreach ($verifItem as $verifMethod => $verifOp) { if (! in_array($verifMethod, $verifMethods, true) || empty($verifOp['operationId'])) { continue; } $verifGroups[$verifOp['tags'][0] ?? 'Lainnya'][] = [ 'id' => $verifOp['operationId'], 'method' => $verifMethod, 'label' => $verifOp['summary'] ?? $verifPath, 'path' => $verifPath, ]; } } @endphp