rapidoc.blade.php 750 B

1234567891011121314151617181920212223
  1. <!-- See https://rapidocweb.com/api.html for options -->
  2. <!doctype html> <!-- Important: must specify -->
  3. <html>
  4. <head>
  5. <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
  6. <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
  7. </head>
  8. <body>
  9. <rapi-doc
  10. @foreach($htmlAttributes as $attribute => $value)
  11. {{-- Attributes specified first override later ones --}}
  12. {!! $attribute !!}="{!! $value !!}"
  13. @endforeach
  14. spec-url="{!! $metadata['openapi_spec_url'] !!}"
  15. render-style="read"
  16. allow-try="{!! ($tryItOut['enabled'] ?? true) ? 'true' : 'false'!!}"
  17. >
  18. @if($metadata['logo'])
  19. <img slot="logo" src="{!! $metadata['logo'] !!}"/>
  20. @endif
  21. </rapi-doc>
  22. </body>
  23. </html>