gridsuite / deployment

GridSuite deployment configuration
Mozilla Public License 2.0
5 stars 7 forks source link

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

Open Tristan-WorkGH opened 1 month ago

Tristan-WorkGH commented 1 month ago

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 😄