CINXE.COM
Swagger UI
<!-- HTML for static distribution bundle build --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Swagger UI</title> <link rel="stylesheet" type="text/css" href="webjars/swagger-ui/swagger-ui.css"/> <link rel="stylesheet" type="text/css" href="webjars/swagger-ui/index.css"/> <link rel="icon" type="image/png" href="webjars/swagger-ui/favicon-32x32.png" sizes="32x32"/> <link rel="icon" type="image/png" href="webjars/swagger-ui/favicon-16x16.png" sizes="16x16"/> </head> <body> <div id="swagger-ui"></div> <script src="webjars/swagger-ui/swagger-ui-bundle.js" charset="UTF-8"></script> <script src="webjars/swagger-ui/swagger-ui-standalone-preset.js" charset="UTF-8"></script> <script> // Custom url for api calls const UrlMutatorPlugin = (system) => ({ rootInjects: { setServer: (server) => { const jsonSpec = system.getState().toJSON().spec.json; const servers = [{url: server}]; const newJsonSpec = Object.assign({}, jsonSpec, { servers }); return system.specActions.updateJsonSpec(newJsonSpec); } } }); // Hide Api definition url under title const HideApiDefinitionUrlPlugin = () => { return { wrapComponents: { InfoUrl: () => () => null } } } window.onload = function () { // Begin Swagger UI call region const ui = SwaggerUIBundle({ url: "/RegistryCxn/rest/v3-api-docs.json", dom_id: '#swagger-ui', deepLinking: true, validatorUrl: null, tagsSorter: 'alpha', presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ UrlMutatorPlugin, HideApiDefinitionUrlPlugin ], layout: "StandaloneLayout" }); // End Swagger UI call region window.ui = ui; }; </script> </body> </html>