Skip to content

Commit

Permalink
feat: upgrade swagger openai viewer 3 => 5
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Oct 18, 2023
1 parent c80b03f commit bc52155
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netsuite/cli/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,21 +268,21 @@ async def rest_api_openapi_serve(config, args):
html = """<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css">
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css">
<title>NetSuite REST Record API</title>
</head>
<body>
<div id="swagger-ui">
</div>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js"></script>
<!-- `SwaggerUIBundle` is now available on the page -->
<script>
const ui = SwaggerUIBundle({
url: '/openapi.json',
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIBundle.SwaggerUIStandalonePreset
SwaggerUIBundle.presets.apis,
SwaggerUIBundle.SwaggerUIStandalonePreset
],
layout: "BaseLayout",
deepLinking: true
Expand Down

0 comments on commit bc52155

Please sign in to comment.