Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mills

Mills is an API module for processing Textile mills

extends

API

Hierarchy

  • API
    • Mills

Index

Constructors

Methods

Constructors

constructor

Methods

run

  • Run a mill over a given payload

    Currently supports:

    • /blob - Process raw data blobs
    • /image/exif - Extract EXIF data from an image
    • /image/resize - Resize an image
    • /json - Process (and validate according to schema.org definition) input JSON data
    • /schema - Validate, add, and pin a new JSON-based Schema

    Parameters

    • name: string

      Name of the mill. (Relative uri). See above description for details

    • options: KeyValue

      Schema options for the mill

    • payload: any

      A multi-part form containing the payload

    • headers: KeyValue

    Returns Promise<FileIndex>

    The generated FileIndex object