apigee microgateway config module
this module takes a source config yaml and and returns a merged config from the network
inorder to use its recommended you work in this order
- call the init function which will copy a source example and save to a target location
- call get to refresh the gateway data into the config, can be called after init
- call save to save any changes
- call load to load an existing config from disk
api looks like this
{
get:function(options,cb){
},
init:function(options, cb){
},
load:function(options){
},
save:function(config,target){
}
};
release notes
v2.4.17
3/1/2019
Bug fixes:
Improve error handling for invalid JSON
testing
while the entire test suite for this project can be tested without any external dependencies, you may want to run tests using your own microgateway configuration. Here's an example of how to do this:
cp /path/to/your/config.yaml ./tests/configdir/my-config.yaml
EDGEMICRO_KEY=< your edgemicro key >
EDGEMICRO_SECRET=< your edgemicro secret >
npm test