Skip to content

Commit 7ee3bd1

Browse files
committed
Add a configuration option to hide code metadata on endpoints
1 parent ae8f51b commit 7ee3bd1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

config/request-docs.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
'Authorization' => 'Bearer',
2626
],
2727

28+
/*
29+
* Show development relevant metadata on endpoints
30+
*/
31+
'show_development_metadata' => true,
32+
2833
/**
2934
* Path to to static HTML if using command line.
3035
*/

resources/views/index.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class="inline-flex text-xs"
216216
</span>
217217
</h1>
218218
</div>
219+
@if (!config('request-docs.show_development_metadata'))
219220
<table class="table-fixed text-sm mt-5">
220221
<tbody>
221222
<tr>
@@ -244,6 +245,7 @@ class="inline-flex text-xs"
244245
@endforeach
245246
</tbody>
246247
</table>
248+
@endif
247249
<div v-if="docs[{{$index}}]['docBlock']" class="border-2 mr-4 mt-4 p-4 rounded text-sm">
248250
<h3 class="font-bold">Description</h3>
249251
<hr>

0 commit comments

Comments
 (0)