1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-10-25 06:37:36 +03:00

API: Added comment-read endpoint, added api docs section descriptions

This commit is contained in:
Dan Brown
2025-10-22 18:44:49 +01:00
parent 082dbc9944
commit 3ad1e31fcc
6 changed files with 67 additions and 12 deletions

View File

@@ -45,7 +45,9 @@
@foreach($docs as $model => $endpoints)
<section class="card content-wrap auto-height">
<h1 class="list-heading text-capitals">{{ $model }}</h1>
@if($endpoints[0]['model_description'])
<p>{{ $endpoints[0]['model_description'] }}</p>
@endif
@foreach($endpoints as $endpoint)
@include('api-docs.parts.endpoint', ['endpoint' => $endpoint, 'loop' => $loop])
@endforeach