@advanced-rest-client/saved-request-editordeprecated

An applet to edit saved request data

Usage no npm install needed!

<script type="module">
  import advancedRestClientSavedRequestEditor from 'https://cdn.skypack.dev/@advanced-rest-client/saved-request-editor';
</script>

README

Published on NPM

Build Status

Published on webcomponents.org

saved-request-editor

An applet to edit saved request data. The element appears in a context of a request editor or requests list.

It provides an UI to edit request metadata, but not HTTP request values.

The element dispatches bubbling save-request event that is handled by request-model which processes store request. This is preferred way of storing request data in ARC.

Example:

<saved-request-editor></saved-request-editor>

Usage

Installation

npm install --save @advanced-rest-client/saved-request-editor

In a LitElement

import { LitElement, html } from 'lit-element';
import './node_modules/@advanced-rest-client/saved-request-editor/saved-request-editor.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <saved-request-editor
      .request="${this.request}"
      @cancel="${this._onCancel}"
      @save-request="${this._onSave}"></saved-request-editor>
    `;
  }

  _onCancel() {
    ...
  }

  _onSave() {
    ...
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/saved-request-editor
cd saved-request-editor
npm install

Running the tests

npm test

API components

This components is a part of API components ecosystem