Skip to content

Commit 77f12d7

Browse files
committed
Some UI customisation
1 parent 34ab296 commit 77f12d7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

config/swagger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* API Path
3939
*/
40-
'path' => env('SWAGGER_PATH', '/documentation'),
40+
'path' => env('SWAGGER_PATH', '/docs'),
4141

4242
/**
4343
* API Storage Path

resources/views/index.blade.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,23 @@
4040
const ui = SwaggerUIBundle({
4141
url: "{!! $urlToDocs !!}",
4242
dom_id: '#swagger-ui',
43-
deepLinking: true,
4443
presets: [
4544
SwaggerUIBundle.presets.apis,
4645
SwaggerUIStandalonePreset
4746
],
4847
plugins: [
4948
SwaggerUIBundle.plugins.DownloadUrl
5049
],
51-
layout: "StandaloneLayout"
50+
layout: "StandaloneLayout",
51+
filter: true,
52+
deepLinking: true,
53+
displayRequestDuration: true,
54+
showExtensions: true,
55+
showCommonExtensions: true,
56+
queryConfigEnabled: true,
57+
persistAuthorization: true,
58+
// "list", "full", "none"
59+
docExpansion: "{{ request()->get('expansion', 'list') }}"
5260
});
5361
5462
window.ui = ui;

0 commit comments

Comments
 (0)