api-resource-example-document

WebJar for api-resource-example-document

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

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

ArtifactId

api-resource-example-document
Last Version

Last Version

2.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

api-resource-example-document
WebJar for api-resource-example-document
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/api-resource-example-document

Download api-resource-example-document

How to add to project

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

Dependencies

compile (8)

Group / Artifact Type Version
org.webjars.bowergithub.advanced-rest-client : api-example-generator jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : clipboard-copy jar [2.0.1,3)
org.webjars.bowergithub.advanced-rest-client : json-table jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : arc-icons jar [2.0.2,3)
org.webjars.bowergithub.polymerelements : paper-icon-button jar [2.2.0,3)
org.webjars.bowergithub.advanced-rest-client : amf-helper-mixin jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : prism-element jar [2.1.0,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Published on NPM

Build Status

Published on webcomponents.org

api-resource-example-document

A viewer for examples in a resource based on AMF model

<api-resource-example-document examples='[{"http://schema.org/name":[{"@value":"Example1"}],"http://raml.org/vocabularies/document#value":[{"@value":"{{\n    \"value\":true}"}]}]'></api-resource-example-document>

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-resource-example-document

In an html file

<html>
  <head>
    <script type="module">
      import '@api-components/api-resource-example-document/api-resource-example-document.js';
    </script>
  </head>
  <body>
    <api-resource-example-document amf-model="..."></api-resource-example-document>
  </body>
</html>

In a LitElement

import { LitElement, html } from 'lit-element';
import '@api-components/api-resource-example-document/api-resource-example-document.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <api-resource-example-document
      .amf="${this.model}"
      .examples="${this.examples}"
      .mediaType="${this.examplesMediaType}"></api-resource-example-document>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/api-resource-example-document
cd api-resource-example-document
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.4