1.0.10 • Published 4 months ago
@sfdocs-internal/api-method-documentation v1.0.10
DEPRECATED
This 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.
Version compatibility
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.
Usage
Installation
npm install --save @api-components/api-method-documentation
In an html file
<html>
<head>
<script type="module">
import '@api-components/api-method-documentation/api-method-documentation.js';
</script>
</head>
<body>
<api-method-documentation amf="..." endpoint="..." method="..."></api-method-documentation>
</body>
</html>
In a LitElement
import { LitElement, html } from 'lit-element';
import '@api-components/api-method-documentation/api-method-documentation.js';
class SampleElement extends PolymerElement {
render() {
return html`
<api-method-documentation
.amf="${this.amf}"
.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}"></api-method-documentation>
`;
}
_tryitHandler(e) {
console.log('opening api-request-panel...');
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/api-components/api-method-documentation
cd api-method-documentation
npm install
Running the demo locally
npm start
Running the tests
npm test
1.0.10
4 months ago
1.0.4-desc-fix-alpha
1 year ago
1.0.8-alpha
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.8-alpha2
1 year ago
1.0.7
1 year ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4-alpha1
2 years ago
1.0.7-alpha1
1 year ago
1.0.7-alpha2
1 year ago
1.0.7-alpha4
1 year ago
1.0.3-alpha1
2 years ago
1.0.2
2 years ago
1.0.0
2 years ago
1.0.3
2 years ago
1.0.1-alpha
2 years ago
1.0.1-alpha1
2 years ago
1.0.2-alpha1
2 years ago
1.0.0-alpha1
2 years ago
1.0.0-alpha
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
5.2.8
2 years ago