@php /** @var Knuckles\Camel\Output\OutputEndpointData $endpoint */ @endphp
@component('scribe::components.badges.auth', ['authenticated' => $endpoint->isAuthed()]) @endcomponent
{!! Parsedown::instance()->text($endpoint->metadata->description ?: '') !!}Example request:@foreach($metadata['example_languages'] as $language)
@if(count($response->headers))Example response ({{ $response->fullDescription() }}):
@foreach($response->headers as $header => $value)
{{ $header }}: {{ is_array($value) ? implode('; ', $value) : $value }}
@endforeach
@if(is_string($response->content) && Str::startsWith($response->content, "<@endforeach @endif>")) [Binary data] - {{ htmlentities(str_replace("<
@elseif($response->status == 204)>", "", $response->content)) }} [Empty response]
@else @php($parsed = json_decode($response->content)) {{-- If response is a JSON string, prettify it. Otherwise, just print it --}}{!! htmlentities($parsed != null ? json_encode($parsed, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) : $response->content) !!}
@endif
Received response:
Request failed with error: