{{-- API DOCUMENTATION --}}
@foreach($apiEndpoints as $index => $endpoint)

{{ $endpoint['title'] }}

@if(isset($endpoint['method']) && count($endpoint['method'])>0)
@foreach($endpoint['method'] as $method) {{ $method }} @endforeach
@endif
@if(isset($endpoint['route']))
Endpoint
{{ $endpoint['route'] }}
@endif @if(isset($endpoint['parameters'] ) && count($endpoint['parameters']) > 0)
Request Parameters
@foreach($endpoint['parameters'] as $param) @endforeach
Parameter Type Required Description
{{ $param['name'] }} {{ $param['type'] }} {{ $param['required'] ? 'Yes' : 'No' }} @if(isset($param['description'])) {{ $param['description'] }} @endif
@endif @if(isset($endpoint['html']))
{!! $endpoint['html'] !!}
@endif @if(!isset($endpoint['api_tester']) || $endpoint['api_tester'] === true)
Try It Out
@foreach($endpoint['parameters'] as $param) @if($param['name'] === 'api_key')
@elseif($param['name'] === 'number')
{{ $param['description'] ?? '' }}
@else
@endif @endforeach
Response
 
@endif @if(isset($endpoint['example_response']))
Example JSON Response
{{ json_encode($endpoint['example_response'], JSON_PRETTY_PRINT) }}
@endif
@endforeach