1 @extends('simple-layout')
5 <div class="container pt-xl">
7 <div class="grid right-focus reverse-collapse">
10 @foreach($docs as $model => $endpoints)
11 <p class="text-uppercase text-muted mb-xm mt-l"><strong>{{ $model }}</strong></p>
13 @foreach($endpoints as $endpoint)
15 <a href="#{{ $endpoint['name'] }}" class="text-mono inline block mr-s">
16 <span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
18 <a href="#{{ $endpoint['name'] }}" class="text-mono">
19 {{ $endpoint['controller_method'] }}
26 <div style="overflow: auto;">
27 @foreach($docs as $model => $endpoints)
28 <section class="card content-wrap auto-height">
29 <h1 class="list-heading text-capitals">{{ $model }}</h1>
31 @foreach($endpoints as $endpoint)
32 <h6 class="text-uppercase text-muted float right">{{ $endpoint['controller_method'] }}</h6>
33 <h5 id="{{ $endpoint['name'] }}" class="text-mono mb-m">
34 <span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
35 {{ url($endpoint['uri']) }}
37 <p class="mb-m">{{ $endpoint['description'] ?? '' }}</p>
38 @if($endpoint['body_params'] ?? false)
39 <details class="mb-m">
40 <summary class="text-muted">Body Parameters</summary>
46 @foreach($endpoint['body_params'] as $paramName => $rules)
48 <td>{{ $paramName }}</td>
50 @foreach($rules as $rule)
51 <code class="mr-xs">{{ $rule }}</code>
59 @if($endpoint['example_request'] ?? false)
60 <details details-highlighter class="mb-m">
61 <summary class="text-muted">Example Request</summary>
62 <pre><code class="language-json">{{ $endpoint['example_request'] }}</code></pre>
65 @if($endpoint['example_response'] ?? false)
66 <details details-highlighter class="mb-m">
67 <summary class="text-muted">Example Response</summary>
68 <pre><code class="language-json">{{ $endpoint['example_response'] }}</code></pre>