@if($endpoint->hasJsonBody())
{!! json_encode($endpoint->getSampleBody(), JSON_PRETTY_PRINT) !!}
@else
@foreach($endpoint->bodyParameters as $name => $parameter)
@php
/** @var \Knuckles\Camel\Output\Parameter $parameter */
if ($parameter->type == 'object') // Skip; individual object children are listed
continue;
if (str_contains($name, "[]"))
// This likely belongs to an obj-array (eg objs[].a); we only show the parent (objs[]), so skip
continue;
@endphp
:
@endforeach
@endif