{{ $endpoint['controller_method_kebab'] }}
{{ $endpoint['method'] }} @if($endpoint['controller_method_kebab'] === 'list') {{ url($endpoint['uri']) }} @else {{ url($endpoint['uri']) }} @endif

{{ $endpoint['description'] ?? '' }}

@if($endpoint['body_params'] ?? false)
{{ $endpoint['method'] === 'GET' ? 'Query' : 'Body' }} Parameters @foreach($endpoint['body_params'] as $paramName => $rules) @endforeach
Param Name Value Rules
{{ $paramName }} @foreach($rules as $rule) {{ $rule }} @endforeach
@endif @if($endpoint['example_request'] ?? false)
Example Request
{{ $endpoint['example_request'] }}
@endif @if($endpoint['example_response'] ?? false)
Example Response
{{ $endpoint['example_response'] }}
@endif @if(!$loop->last)
@endif