cookr-interservice-gateway-1
v1.1.0
Published
A wrapper function built on Axios request config that routes the request to the service based on the function parameters
Downloads
2
Readme
Cookr interservice gateway
A wrapper function built on Axios request config that routes the request to the service based on the function parameters
Example
For convenience, aliases have been provided
requestAdaptor(env, method, service, requestPath, headers, query, data)
Example:
const {requestAdaptor} = require('test-api-gate');
(async function() {
let response = await requestAdaptor('develop', 'get', 'menu-service', 'kitchens', {}, {});
console.log(response);
})()