{{ $endpoint['method'] }}

{{ $endpoint['path'] }}

{{-- 설명 --}} @if($endpoint['summary'] || $endpoint['description'])
@if($endpoint['summary'])

{{ $endpoint['summary'] }}

@endif @if($endpoint['description'])

{{ $endpoint['description'] }}

@endif
@endif {{-- Deprecated 경고 --}} @if($endpoint['deprecated'] ?? false)

⚠️ 이 API는 더 이상 사용되지 않습니다 (Deprecated)

@endif {{-- Path Parameters --}} @php $pathParams = collect($endpoint['parameters'])->where('in', 'path'); @endphp @if($pathParams->isNotEmpty())

Path Parameters

@foreach($pathParams as $param)
@endforeach
@endif {{-- Query Parameters --}} @php $queryParams = collect($endpoint['parameters'])->where('in', 'query'); @endphp @if($queryParams->isNotEmpty())

Query Parameters

@foreach($queryParams as $param)
@endforeach
@endif {{-- Request Body --}} @if(in_array($endpoint['method'], ['POST', 'PUT', 'PATCH']) && ($endpoint['requestBody'] ?? null))

Request Body (JSON)

@php // 스키마에서 예제 데이터 추출 시도 $schema = $endpoint['requestBody']['content']['application/json']['schema'] ?? []; $example = $schema['example'] ?? null; $properties = $schema['properties'] ?? []; if (!$example && $properties) { $example = []; foreach ($properties as $propName => $propDef) { $example[$propName] = $propDef['example'] ?? ($propDef['type'] === 'string' ? '' : null); } } @endphp
@endif {{-- 템플릿 선택 --}} @if($templates->isNotEmpty())

저장된 템플릿

@endif {{-- 실행 버튼 --}}