A HTTP method documentation build from AMF model
npm install @api-components/api-method-documentationThis component is being deprecated. The code base has been moved to api-documentation module. This module will be archived when PR 37 is merged.
-----
A HTTP method documentation generated from an AMF model.


This version only works with AMF model version 2 (AMF parser >= 4.0.0).
For compatibility with previous model version use 3.x.x version of the component.
``sh`
npm install --save @api-components/api-method-documentation
`html`
`js
import { LitElement, html } from 'lit-element';
import '@api-components/api-method-documentation/api-method-documentation.js';
class SampleElement extends PolymerElement {
render() {
return html
.server="${server}"
.endpoint="${this.endpoint}"
.method="${this.method}"
.previous="${this.previous}"
.next="${this.next}"
?renderCodeSnippets="${this.codeSnippets}"
?narrow="${this.narrow}"
.renderSecurity="${this.renderSecurity}"
.noTryIt="${this.noTryit}"
?legacy="${this.legacy}"
@tryit-requested="${this._tryitHandler}">
;
}
_tryitHandler(e) {
console.log('opening api-request-panel...');
}
}
customElements.define('sample-element', SampleElement);
`
`sh`
git clone https://github.com/api-components/api-method-documentation
cd api-method-documentation
npm install
`sh`
npm start
`sh``
npm test