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