1 <h6 class="text-uppercase text-muted float right">{{ $endpoint['controller_method_kebab'] }}</h6>
3 <h5 id="{{ $endpoint['name'] }}" class="text-mono mb-m">
4 <span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
5 @if($endpoint['controller_method_kebab'] === 'list')
6 <a style="color: inherit;" target="_blank" rel="noopener" href="{{ url($endpoint['uri']) }}">{{ url($endpoint['uri']) }}</a>
8 {{ url($endpoint['uri']) }}
12 <p class="mb-m">{{ $endpoint['description'] ?? '' }}</p>
14 @if($endpoint['body_params'] ?? false)
15 <details class="mb-m">
16 <summary class="text-muted">{{ $endpoint['method'] === 'GET' ? 'Query' : 'Body' }} Parameters</summary>
22 @foreach($endpoint['body_params'] as $paramName => $rules)
24 <td>{{ $paramName }}</td>
26 @foreach($rules as $rule)
27 <code class="mr-xs">{{ $rule }}</code>
36 @if($endpoint['example_request'] ?? false)
37 <details component="details-highlighter" class="mb-m">
38 <summary class="text-muted">Example Request</summary>
39 <pre><code class="language-json">{{ $endpoint['example_request'] }}</code></pre>
43 @if($endpoint['example_response'] ?? false)
44 <details component="details-highlighter" class="mb-m">
45 <summary class="text-muted">Example Response</summary>
46 <pre><code class="language-json">{{ $endpoint['example_response'] }}</code></pre>