multi-request-json
v1.0.5
Published
Api handler for marging requests
Downloads
3
Readme
Multirequest express midelware
Travis CI
How to use
Setup routing
const multirequestJson = require('multirequest-json');
const multirequest = multirequestJson(APP_DOMAIN)
app.get(SOME_ENDPOINT, multirequest);
Make some request
HTTP GET SOME_ENDPOINT?key1=edpoint1&key2=endpoint2&key3=endpoint3
Example
Call endpoint
http://localhost:3000/api/resources?users=api/users&customer=api/customers/23&countries=api/countries
Return
{
"users": {},
"customer": {},
"countries": {}
}