Back {{ $httpMethod }}

{{ $api->name }}

@php $updateBase = url('/api/generated/' . $api->slug . '/update'); $getBase = url('/api/generated/' . $api->slug); $schemaUrl = url('/api/generated/' . $api->slug . '/schema'); $debugUrl = url('/api/generated/' . $api->slug . '/debug-schema'); $isPatch = strtoupper($httpMethod) === 'PATCH'; $accent = $isPatch ? 'orange' : 'amber'; $btnCls = $isPatch ? 'bg-orange-500 hover:bg-orange-600' : 'bg-amber-500 hover:bg-amber-600'; $ringCls = $isPatch ? 'focus:ring-orange-400' : 'focus:ring-amber-400'; @endphp
{{-- URL Bar --}}
{{ $httpMethod }} {{ $updateBase }}/{id}
{{-- ── LEFT: Schema Inspector ──────────────────────────────────────── --}}
📋 Schema Inspector
Click "Load Schema" to see fields & types.
{{-- Debug Schema --}}
{{-- ── RIGHT: Form + Response ───────────────────────────────────────── --}}

{{ $isPatch ? '🔧 Partial Update (PATCH)' : '🔄 Full Replace (PUT)' }}

{{ $isPatch ? 'Send only the fields you want to change.' : 'Send all fields — missing ones will be set to null.' }}

{{-- Step 1: Load Record --}}

Step 1 — Load Existing Record

{{-- Step 2: Edit Fields --}}

Step 2 — {{ $isPatch ? 'Edit fields you want to change' : 'Fill all fields' }}

Click "Load Schema" to auto-generate fields, or "Load Record" to pre-fill.
@if($isPatch)

Leave fields empty to skip updating them.

@endif
{{-- Response Panel --}}