http-code-snippets

WebJar for http-code-snippets

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

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

ArtifactId

http-code-snippets
Last Version

Last Version

2.0.7
Release Date

Release Date

Type

Type

jar
Description

Description

http-code-snippets
WebJar for http-code-snippets
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/http-code-snippets

Download http-code-snippets

How to add to project

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

Dependencies

compile (9)

Group / Artifact Type Version
org.webjars.bowergithub.polymerelements : prism-element jar [2.1.0,3)
org.webjars.bowergithub.polymerelements : paper-tabs jar [2.1.1,3)
org.webjars.bowergithub.polymerelements : iron-icon jar [2.1.0,3)
org.webjars.bowergithub.polymerelements : paper-icon-button jar [2.2.0,3)
org.webjars.bowergithub.polymerelements : iron-flex-layout jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : prism-common jar [2.0.0,3)
org.webjars.bowergithub.polymerelements : iron-pages jar [2.1.1,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : arc-icons jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Published on NPM

<http-code-snippets>

Code snippets to render code implementation examples for a HTTP request.

Example:

<http-code-snippets url="https://api.github.com/authorizations" method="POST" payload='{"scopes": ["public_repo"]}'></http-code-snippets>

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/http-code-snippets

In an html file

<html>
  <head>
    <script type="module">
      import './node_modules/@advanced-rest-client/http-code-snippets/http-code-snippets.js';
    </script>
  </head>
  <body>
    <http-code-snippets url="https://api.github.com/authorizations" method="POST" payload='{"scopes": ["public_repo"]}'></http-code-snippets>
  </body>
</html>

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/http-code-snippets/http-code-snippets.js';

class SampleElement extends PolymerElement {
  render() {
    const {
      url,
      method,
      headers,
      payload
    } = this;
    return html`
    <http-code-snippets
      .url="${url}"
      .method="${method}"
      .headers="${headers}"
      .payload="${payload}"></http-code-snippets>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/http-code-snippets
cd http-code-snippets
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.7