Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a centralized Swagger-UI for all OpenAPI specs #438

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Tristan-WorkGH
Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH commented Oct 3, 2024

Add a swagger-ui on http://localhost:9080/swagger/ that can show the specs of any server.
new_swagger_ui

Why? because we haven't to remember what is the port of each server.

Note

The servers have CORS activated with rules that forbid another domain. So a plugin is needed to force the navigator to ignore CORS rules, like:

An overlay in nginx is done to relay from the same domain the specs that are on different servers (ie domains for navigators). That induce a rewrite of urls through a swagger plugin to be transparent to the user.

Note

A dark theme has been added for the ease of eyes 😄

Rework URLs to be clickable and add some commands that can be helpful
@Tristan-WorkGH Tristan-WorkGH added the enhancement New feature or request label Oct 3, 2024
@Tristan-WorkGH Tristan-WorkGH self-assigned this Oct 3, 2024
@Tristan-WorkGH Tristan-WorkGH marked this pull request as ready for review October 3, 2024 01:38
Add pot number in show dropdown
But loose the server url in the ui
use nginx as a a proxy to add missing CORS headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant