@foreach($toc as $link)
{{ $link['title'] }}
@endforeach
{{ $section['title'] }}
{{ $section['description'] }}
@foreach($section['quick'] as $item)
@endforeach
@endif
@if(!empty($section['endpoints'] ?? []))
@foreach($section['endpoints'] as $endpoint)
{{ $item['label'] }}
{{ $item['value'] }}
{{ $endpoint['method'] }}
{{ $endpoint['path'] }}
@if(!empty($endpoint['auth']))
🔒 {{ __('applicationintegration-docs::doc.auth_required') }}
@endif
{{ $endpoint['name'] }}
{{ $endpoint['summary'] }}
@if(!empty($endpoint['headers'] ?? []))| {{ __('applicationintegration-docs::doc.header') }} | {{ __('applicationintegration-docs::doc.value') }} |
|---|---|
| {{ $header['name'] }} | {{ $header['value'] }} |
📥 {{ __('applicationintegration-docs::doc.body_schema') }}
{!! json_encode($endpoint['body'], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) !!}
@endif
@if(!empty($endpoint['notes'] ?? []))
💡 Notes
@foreach($endpoint['notes'] as $note)
{{ $note }}
@endforeach
@include('applicationintegration::documentation.partials.code', [
'method' => $section['samples']['method'],
'path' => $section['samples']['path'],
'body' => $section['samples']['body'],
'response' => $section['samples']['response'],
'baseUrl' => $baseUrl
])
@endif