Created
March 2, 2023 15:55
-
-
Save ponelat/74aa5ca231cd43e2ff42580b775ace11 to your computer and use it in GitHub Desktop.
Swagger Editor standalone html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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/[email protected]/swagger-editor.css" /> | |
</head> | |
<body> | |
<div id="swagger"></div> | |
<script src="https://unpkg.com/[email protected]/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