Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Forked from VECTO / VECTO Sim
Source project has a limited visibility.

OpenAPI Browser

A lightweight JS browser for multiple OpenAPI version browsing

This repository skeleton has not been designed as a React application or React components. React is used under the hood but the goal is to produce a JS library in UMD format (Universal Module Definition) to be imported as vanilla JS in browwer.

<html>
<head>
    <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
    <script src="../../dist/umd/index.js"></script>
</head>
<body>
<div id="root"></div>
<script>
  OpenApiBrowser({
    rootElementId: 'root',
    props: {}
  })
</script>
</body>
</html>

Contributiong

npm install
npm run build

and open the /test/browser/index.html file in a browser.