Sha256: b7a2031443ddae4edda86c9c591770ab600d70d573f87a8d6cc2bdf52e931885

Contents?: true

Size: 878 Bytes

Versions: 7

Compression:

Stored size: 878 Bytes

Contents

/* eslint no-console:0 */
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//
// To reference this file, add <%= javascript_pack_tag 'api' %> to the appropriate
// layout file, like app/views/layouts/application.html.erb

import SwaggerUI, { plugins, presets } from "swagger-ui"
import "swagger-ui/dist/swagger-ui.css"

window.addEventListener("load", function () {
  SwaggerUI({
    url: `/api/v1/openapi.json`,
    dom_id: "#GraphitiOpenAPI",
    presets: [
      presets.apis,
      SwaggerUI.SwaggerUIStandalonePreset
    ],
    plugins: [
      plugins.SpecIndex,
      plugins.LayoutIndex
    ],
    deepLinking: true,
  });
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphiti-openapi-0.1.7 app/assets/packs/api.js
graphiti-openapi-0.1.6 app/assets/packs/api.js
graphiti-openapi-0.1.5 app/assets/packs/api.js
graphiti-openapi-0.1.4 app/assets/packs/api.js
graphiti-openapi-0.1.3 app/assets/packs/api.js
graphiti-openapi-0.1.2 app/assets/packs/api.js
graphiti-openapi-0.1.0 app/assets/packs/api.js