cookr-interservice-gateway
v1.1.13
Published
A wrapper function built on Axios request config that routes the request to the service based on the function parameters
Downloads
71
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);
})()