kureharyosuke / Swagger

1 stars 0 forks source link

SETUP: local server swagger api #1

Open kureharyosuke opened 1 year ago

kureharyosuke commented 1 year ago

image

http-server --cors
window.onload = function () {
  //<editor-fold desc="Changeable Configuration Block">

  // the following lines will be replaced by docker/configurator, when it runs in a docker-container
  window.ui = SwaggerUIBundle({
    url: "http://192.168.1.105:8080/swagger-hub-api.yaml", <= url
    dom_id: "#swagger-ui",
    deepLinking: true,
    presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
    plugins: [SwaggerUIBundle.plugins.DownloadUrl],
    layout: "StandaloneLayout",
  });

  //</editor-fold>
};
kureharyosuke commented 1 year ago

image