Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created March 2, 2023 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponelat/74aa5ca231cd43e2ff42580b775ace11 to your computer and use it in GitHub Desktop.
Save ponelat/74aa5ca231cd43e2ff42580b775ace11 to your computer and use it in GitHub Desktop.
Swagger Editor standalone html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="SwaggerEditor"
/>
<title>SwaggerEditor</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-editor-dist@4.7.0/swagger-editor.css" />
</head>
<body>
<div id="swagger"></div>
<script src="https://unpkg.com/swagger-editor-dist@4.5.0/swagger-editor-bundle.js" crossorigin></script>
<script>
window.onload = () => {
window.editor = SwaggerEditorBundle({
url: 'https://petstore3.swagger.io/api/v3/openapi.yaml',
dom_id: '#swagger',
});
};
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment