api-method-documentation

WebJar for api-method-documentation

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.bowergithub.advanced-rest-client
ArtifactId

ArtifactId

api-method-documentation
Last Version

Last Version

2.0.19
Release Date

Release Date

Type

Type

jar
Description

Description

api-method-documentation
WebJar for api-method-documentation
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/api-method-documentation

Download api-method-documentation

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/api-method-documentation/ -->
<dependency>
    <groupId>org.webjars.bowergithub.advanced-rest-client</groupId>
    <artifactId>api-method-documentation</artifactId>
    <version>2.0.19</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/api-method-documentation/
implementation 'org.webjars.bowergithub.advanced-rest-client:api-method-documentation:2.0.19'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/api-method-documentation/
implementation ("org.webjars.bowergithub.advanced-rest-client:api-method-documentation:2.0.19")
'org.webjars.bowergithub.advanced-rest-client:api-method-documentation:jar:2.0.19'
<dependency org="org.webjars.bowergithub.advanced-rest-client" name="api-method-documentation" rev="2.0.19">
  <artifact name="api-method-documentation" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.advanced-rest-client', module='api-method-documentation', version='2.0.19')
)
libraryDependencies += "org.webjars.bowergithub.advanced-rest-client" % "api-method-documentation" % "2.0.19"
[org.webjars.bowergithub.advanced-rest-client/api-method-documentation "2.0.19"]

Dependencies

compile (21)

Group / Artifact Type Version
org.webjars.bowergithub.advanced-rest-client : arc-icons jar [2.0.2,3)
org.webjars.bowergithub.polymerelements : iron-collapse jar [2.2.0,3)
org.webjars.bowergithub.advanced-rest-client : http-code-snippets jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : raml-aware jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : amf-helper-mixin jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : iron-icon jar [2.1.0,3)
org.webjars.bowergithub.advanced-rest-client : api-security-documentation jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : paper-icon-button jar [2.1.0,3)
org.webjars.bowergithub.advanced-rest-client : clipboard-copy jar [2.0.1,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : api-headers-document jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : iron-flex-layout jar [2.0.3,3)
org.webjars.bowergithub.advanced-rest-client : markdown-styles jar [2.0.2,3)
org.webjars.bowergithub.advanced-rest-client : api-example-generator jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : http-method-label jar [2.0.2,3)
org.webjars.bowergithub.polymerelements : marked-element jar [2.4.0,3)
org.webjars.bowergithub.advanced-rest-client : api-body-document jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : paper-button jar [2.1.0,3)
org.webjars.bowergithub.advanced-rest-client : api-parameters-document jar [2.0.1,3)
org.webjars.bowergithub.advanced-rest-client : api-annotation-document jar [2.0.1,3)
org.webjars.bowergithub.advanced-rest-client : api-responses-document jar [2.0.2,3)

Project Modules

There are no modules declared in this project.

Published on NPM

Build Status

Published on webcomponents.org

<api-method-documentation>

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

API components

This components is a part of API components ecosystem

org.webjars.bowergithub.advanced-rest-client

ARC

A set of repositories related to the Advanced REST Client and API console (by Mulesoft)

Versions

Version
2.0.19