Skip to content

Commit

Permalink
Add Stoplight elements external view
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Dec 29, 2023
1 parent 7b7c7ba commit 0342537
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions resources/views/external/elements.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- See https://github.com/stoplightio/elements/blob/main/docs/getting-started/elements/elements-options.md for config -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Elements in HTML</title>
<!-- Embed elements Elements via Web Component -->
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css">
</head>
<body>

<elements-api
apiDescriptionUrl="{!! $metadata['openapi_spec_url'] !!}"
router="hash"
layout="sidebar"
hideTryIt="{!! $metadata['try_it_out']['enabled'] == true ? '' : 'true'!!}"
logo ="{!! $metadata['logo'] ?: '' !!}"
/>

</body>
</html>

0 comments on commit 0342537

Please sign in to comment.