api-body-document

WebJar for api-body-document

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

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

ArtifactId

api-body-document
Last Version

Last Version

2.0.14
Release Date

Release Date

Type

Type

jar
Description

Description

api-body-document
WebJar for api-body-document
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download api-body-document

How to add to project

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

Dependencies

compile (13)

Group / Artifact Type Version
org.webjars.bowergithub.polymerelements : iron-flex-layout jar [2.0.3,3)
org.webjars.bowergithub.advanced-rest-client : arc-icons jar [2.0.2,3)
org.webjars.bowergithub.polymerelements : marked-element jar [2.4.0,3)
org.webjars.bowergithub.polymerelements : iron-icon jar [2.1.0,3)
org.webjars.bowergithub.advanced-rest-client : amf-helper-mixin jar [2.0.1,3)
org.webjars.bowergithub.advanced-rest-client : raml-aware jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : api-schema-document jar [2.0.1,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : api-resource-example-document jar [2.0.1,3)
org.webjars.bowergithub.advanced-rest-client : api-type-document jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : paper-button jar [2.1.0,3)
org.webjars.bowergithub.polymerelements : iron-collapse jar [2.2.0,3)
org.webjars.bowergithub.advanced-rest-client : markdown-styles 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-body-document>

A component to render HTTP method body documentation based on AMF model generated from API spec file.

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.

Styling

<api-body-document> provides the following custom properties and mixins for styling:

Custom property Description Default
--api-body-document-title-border-color Border color of the section title #e5e5e5
--api-body-document-toggle-view-color Color of the toggle view button --arc-toggle-view-icon-color or rgba(0, 0, 0, 0.74)
--api-body-document-toggle-view-hover-color Color of the toggle view button when hovered var(--arc-toggle-view-icon-hover-color or rgba(0, 0, 0, 0.88)
--api-body-document-description-color Color of the type description rgba(0, 0, 0, 0.74)
--api-body-document-media-button-background-color Selection color of the media type selector #CDDC39
--api-body-document-examples-title-color Color of examples section title ``
--api-body-document-examples-border-color Example section border color transparent
--code-background-color Background color of the examples section ``
--api-body-document-media-type-label-font-weight Font weight of the media type label (when selection is not available) 500
--api-body-document-title-narrow-font-size initial,
--api-body-document-code-color initial
--api-body-document-any-info-font-size 16px
--api-body-document-any-info-font-weight 500

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @api-components/api-body-document

In an html file

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

In a LitElement

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

class SampleElement extends PolymerElement {
  render() {
    return html`
    <api-body-document .amf="${this.amf}"></api-body-document>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/api-body-document
cd api-body-document
npm install

Running the demo locally

npm start

Running the tests

npm test
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.14