1234567891011121314151617181920212223 |
- <!-- See https://rapidocweb.com/api.html for options -->
- <!doctype html> <!-- Important: must specify -->
- <html>
- <head>
- <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
- <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
- </head>
- <body>
- <rapi-doc
- @foreach($htmlAttributes as $attribute => $value)
- {{-- Attributes specified first override later ones --}}
- {!! $attribute !!}="{!! $value !!}"
- @endforeach
- spec-url="{!! $metadata['openapi_spec_url'] !!}"
- render-style="read"
- allow-try="{!! ($tryItOut['enabled'] ?? true) ? 'true' : 'false'!!}"
- >
- @if($metadata['logo'])
- <img slot="logo" src="{!! $metadata['logo'] !!}"/>
- @endif
- </rapi-doc>
- </body>
- </html>
|