Skip to content

Commit 3d36b23

Browse files
committed
Enable operation deep-linking in the admin API docs
1 parent 906aad4 commit 3d36b23

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/api/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
window.ui = SwaggerUIBundle({
1515
url: './spec.json',
1616
dom_id: '#swagger-ui',
17+
deepLinking: true,
1718
presets: [
1819
SwaggerUIBundle.presets.apis,
1920
],

frontend/src/swagger.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ if (!config) {
2323
}
2424

2525
createRoot(document.getElementById("root") as HTMLElement).render(
26-
<SwaggerUI url={config.openapiUrl} oauth2RedirectUrl={config.callbackUrl} />,
26+
<SwaggerUI
27+
url={config.openapiUrl}
28+
deepLinking={true}
29+
oauth2RedirectUrl={config.callbackUrl}
30+
/>,
2731
);

0 commit comments

Comments
 (0)