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">
16 <span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
17 /{{ $endpoint['uri'] }}
25 @foreach($docs as $model => $endpoints)
26 <section class="card content-wrap auto-height">
27 <h1 class="list-heading text-capitals">{{ $model }}</h1>
29 @foreach($endpoints as $endpoint)
30 <h5 id="{{ $endpoint['name'] }}" class="text-mono mb-m">
31 <span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
32 {{ url($endpoint['uri']) }}
34 <p class="mb-m">{{ $endpoint['description'] ?? '' }}</p>
35 @if($endpoint['example_response'] ?? false)
36 <details details-highlighter>
37 <summary class="text-muted">Example Response</summary>
38 <pre><code class="language-json">{{ $endpoint['example_response'] }}</code></pre>