2.0.0 • Published 3 years ago

proc-that-rest-extractor v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

RestExtractor

Modular extractor for proc-that. Loads items from REST APIs via http requests. Uses restler for downloading resources.

A bunch of badges

Build Status Build Status npm Coverage status license semantic-release Greenkeeper badge

Installation

npm install --save proc-that-rest-extractor

Usage

import {Etl} from 'proc-that';
import {RestExtractor} from 'proc-that-rest-extractor';

let extractor = new RestExtractor('http://my-rest-url.com/posts');

new Etl().addExtractor(extractor).start().subscribe(/*...*/);

Custom result set

If the called API delivers a masked result (i.e. a JSON object with a data property) you can pass a function into the constructor that is called on the result.

import {Etl} from 'proc-that';
import {RestExtractor, RestExtractorMethod} from 'proc-that-rest-extractor';

let extractor = new RestExtractor('http://my-rest-url.com/posts', RestExtractorMethod.Get, result => result.data);

new Etl().addExtractor(extractor).start().subscribe(/*...*/);
2.0.0

3 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.6.0

8 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago