New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@hydrofoil/alcaeus-forms

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hydrofoil/alcaeus-forms

Facilitates building forms to interact with Hydra APIs using Alcaeus

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@hydrofoil/alcaeus-form

Automatically render forms for Hydra-driven operations

Build Status BrowserStack Status codecov

Installation

npm i --save @hydrofoil/alcaeus-forms

Usage

Here's an example showing how form is used with lit-html

import { Hydra } from 'alcaeus'
import { html } from 'lit-html'
import '@hydrofoil/alcaeus-forms/alcaeus-form'

const resource = (await Hydra.loadResource('http://hydra-movies.herokuapp.com/')).root
const collection = resource.getCollections()[0]
resource.operations.find(op => op.method === 'POST')

const form = html`<alcaeus-form .operation="${operation}"></alcaeus-form>` 

Keywords

hydra

FAQs

Package last updated on 03 Nov 2019

Related posts