@foreach($route['methods'] as $method) {{ $method }} @endforeach {{ $route['uri'] }} @if($route['metadata']['authenticated']) 🔐 @endif
@if($route['metadata']['title']) {{ $route['metadata']['title'] }} @endif ▾
@if($route['metadata']['description'])
{!! $route['metadata']['description'] !!}
@endif
@if(in_array('GET',$route['methods']) || (isset($route['showresponse']) && $route['showresponse'])) @endif
{{-- TAB: REQUEST --}}
@foreach($route['methods'] as $method)
{{ $method }} {{ $route['uri'] }}
@endforeach @if($route['metadata']['authenticated'] && $auth['location'] === 'header') @endif @if(count($route['urlParameters']))

🔗 Paramètres URL

@foreach($route['urlParameters'] as $attribute => $parameter)
@component('scribe::components.field-details', [ 'name' => $parameter['name'], 'type' => $parameter['type'] ?? 'string', 'required' => $parameter['required'] ?? true, 'description' => $parameter['description'], 'endpointId' => $endpointId, 'component' => 'url', ])@endcomponent
@endforeach
@endif @if(count($route['queryParameters']))

🔍 Paramètres Query

@foreach($route['queryParameters'] as $attribute => $parameter)
@component('scribe::components.field-details', [ 'name' => $parameter['name'], 'type' => $parameter['type'] ?? 'string', 'required' => $parameter['required'] ?? true, 'description' => $parameter['description'], 'endpointId' => $endpointId, 'component' => 'query', ])@endcomponent
@endforeach
@endif @if(count($route['nestedBodyParameters']))

📦 Body Parameters

@component('scribe::partials.body-parameters', [ 'parameters' => $route['nestedBodyParameters'], 'endpointId' => $endpointId, ])@endcomponent
@endif @if($settings['interactive'])
@endif
{{-- TAB: EXAMPLES --}}
@foreach($settings['languages'] as $lang) @endforeach
@foreach($settings['languages'] as $lang)
@include("scribe::partials.example-requests.$lang")
@endforeach
{{-- TAB: RESPONSE --}} @if(in_array('GET',$route['methods']) || (isset($route['showresponse']) && $route['showresponse']))
@foreach($route['responses'] as $response)
{{ $response['status'] }} {{ $response['description'] ?? '' }}
@if(is_object($response['content']) || is_array($response['content']))
{!! json_encode($response['content'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) !!}
@elseif(is_string($response['content']) && \Str::startsWith($response['content'], "<>"))
 - {{ str_replace("<>","",$response['content']) }}
@elseif($response['status'] == 204)

@else
{!! json_encode(json_decode($response['content']), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) !!}
@endif
@endforeach @if(count($route['responseFields'] ?? []))

📋 Champs de réponse

@foreach($route['responseFields'] as $name => $field)
@component('scribe::components.field-details', [ 'name' => $field['name'], 'type' => $field['type'], 'required' => true, 'description' => $field['description'], 'isInput' => false, ])@endcomponent
@endforeach
@endif
@endif