Skip to content

Commit

Permalink
Enable full domain for servers
Browse files Browse the repository at this point in the history
  • Loading branch information
macrini committed Nov 7, 2024
1 parent 1450ce3 commit b9917a0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
25 changes: 25 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@
.swagger-ui .info a {
color: #4a90e2;
}
/* Add server selection styling */
.swagger-ui .servers-title {
margin: 20px 0 5px;
font-size: 12px;
color: #3b4151;
}
.swagger-ui .servers select {
width: 100%;
max-width: 600px;
border: 2px solid #50514f;
border-radius: 4px;
padding: 8px;
margin: 5px 0;
}
.swagger-ui .servers label {
font-size: 12px;
color: #3b4151;
}
</style>
</head>
<body>
Expand All @@ -42,6 +60,13 @@
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
layout: "StandaloneLayout",
// Enable server selection
withCredentials: true,
displayOperationId: false,
filter: true,
// Improve server selection display
configUrl: null,
validatorUrl: null,
});
};
</script>
Expand Down
8 changes: 4 additions & 4 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ info:
url: https://opensource.org/licenses/MIT

servers:
- url: https://{institution}.uniweb.ca/api
- url: "{baseUrl}/api"
description: UNIWeb Institution Instance
variables:
institution:
default: demo
description: Your institution's UNIWeb subdomain
baseUrl:
default: https://demo.uniweb.ca
description: Your institution's full UNIWeb URL (e.g., https://research.university.edu)

security:
- OAuth2:
Expand Down

0 comments on commit b9917a0

Please sign in to comment.