1.0.6 • Published 7 years ago

getthemall-stream v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

debitoor

Technical task. Get them all - express middleware

Build Status

Description

Make API handle that - build a reusable module/middleware for GETting multiple resources in one go. Should be easy to inject into any existing express app / api.

Usage

npm install getthemall-stream

then add endpoint in your express application

app.get('/api/resources', require('getthemall-stream'));

Example of final use

GET api/resources ? users=api/users & customer=api/customers/23 & countries=api/countries ..

returns {users: .., customer: {..}, countries: .. }

Caution

Node.js v7.6 or later needed.

Async function used for handling serial promises execution.

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago