api-security-documentation

WebJar for api-security-documentation

License

License

Categories

Categories

Security CLI User Interface
GroupId

GroupId

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

ArtifactId

api-security-documentation
Last Version

Last Version

2.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

api-security-documentation
WebJar for api-security-documentation
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download api-security-documentation

How to add to project

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

Dependencies

compile (10)

Group / Artifact Type Version
org.webjars.bowergithub.advanced-rest-client : api-headers-document jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : marked-element jar [2.4.0,3)
org.webjars.bowergithub.advanced-rest-client : api-parameters-document jar [2.0.1,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : raml-aware jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : api-responses-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 : amf-helper-mixin 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)

Project Modules

There are no modules declared in this project.

Published on NPM

Build Status

Published on webcomponents.org

<api-security-documentation>

Documentation view for AMF security model of an API.

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-security-documentation

The component requires to set 2 properties: amf and security. The amf property is the whole API model generated by the AMF parser. This property is used to resolve compact moodel's keys. The security property is the part of the API model describing security method. The shape type is http://a.ml/vocabularies/security#SecurityScheme.

In an html file

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

In a LitElement

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

class SampleElement extends PolymerElement {
  static get properties() {
    return {
      // AMF model for selected security
      security: { type: Object }
    };
  }
  render() {
    return html`
    <api-security-documentation .amf="${this.amf}" .security="${this.security}"></api-security-documentation>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/api-security-documentation
cd api-security-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.6