| Current Path : /var/www/html/bookstack/storage/framework/views/ |
| Current File : /var/www/html/bookstack/storage/framework/views/3bda134e2713d2c20a7c4150cc37290d805e2082.php |
<h6 class="text-uppercase text-muted float right"><?php echo e($endpoint['controller_method_kebab']); ?></h6>
<h5 id="<?php echo e($endpoint['name']); ?>" class="text-mono mb-m">
<span class="api-method" data-method="<?php echo e($endpoint['method']); ?>"><?php echo e($endpoint['method']); ?></span>
<?php if($endpoint['controller_method_kebab'] === 'list'): ?>
<a style="color: inherit;" target="_blank" rel="noopener" href="<?php echo e(url($endpoint['uri'])); ?>"><?php echo e(url($endpoint['uri'])); ?></a>
<?php else: ?>
<?php echo e(url($endpoint['uri'])); ?>
<?php endif; ?>
</h5>
<p class="mb-m"><?php echo e($endpoint['description'] ?? ''); ?></p>
<?php if($endpoint['body_params'] ?? false): ?>
<details class="mb-m">
<summary class="text-muted"><?php echo e($endpoint['method'] === 'GET' ? 'Query' : 'Body'); ?> Parameters</summary>
<table class="table">
<tr>
<th>Param Name</th>
<th>Value Rules</th>
</tr>
<?php $__currentLoopData = $endpoint['body_params']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $paramName => $rules): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($paramName); ?></td>
<td>
<?php $__currentLoopData = $rules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rule): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<code class="mr-xs"><?php echo e($rule); ?></code>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table>
</details>
<?php endif; ?>
<?php if($endpoint['example_request'] ?? false): ?>
<details details-highlighter class="mb-m">
<summary class="text-muted">Example Request</summary>
<pre><code class="language-json"><?php echo e($endpoint['example_request']); ?></code></pre>
</details>
<?php endif; ?>
<?php if($endpoint['example_response'] ?? false): ?>
<details details-highlighter class="mb-m">
<summary class="text-muted">Example Response</summary>
<pre><code class="language-json"><?php echo e($endpoint['example_response']); ?></code></pre>
</details>
<?php endif; ?>
<?php if(!$loop->last): ?>
<hr>
<?php endif; ?><?php /**PATH /var/www/html/bookstack/resources/views/api-docs/parts/endpoint.blade.php ENDPATH**/ ?>