Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

cn007b/getthemall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GetThemAll

NPM

Build Status Coverage Status Codacy Badge

A small library built for demo purposes,
which helps fetch data from different REST API endpoints in one call.

Installation

npm i getthemall

Usage

const getThemAll = require('getthemall');

getThemAll('https://your-api-host.com/', { user1: 'users/1', user2: 'users/2' }, (data) => {
  // Now you have all your data for different resources from different endpoints.
  console.log(data.user1, data.user2);
});

Tests

npm test

About

๐Ÿš€ Despite fact that this project built for demo purposes, you can use this small library to perform few REST API requests in one run.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published