<api-annotation-document>
An element to render RAML annotations based on AMF data model.
API components
This components is a part of API components ecosystem
Usage
Installation
npm install --save @api-components/api-annotation-document
In an html file
<html>
<head>
<script type="module">
import '@api-components/api-annotation-document/api-annotation-document.js';
</script>
</head>
<body>
<api-annotation-document></api-annotation-document>
</body>
</html>
In a LitElement
import { LitElement, html } from 'lit-element';
import '@api-components/api-annotation-document/api-annotation-document.js';
class SampleElement extends LitElement {
render() {
return html`
<api-annotation-document></api-annotation-document>
`;
}
}
customElements.define('sample-element', SampleElement);
Installation
git clone https://github.com/api-components/api-annotation-document
cd api-annotation-document
npm install
Running the demo locally
npm start
Running the tests
npm test