This repository contains the xml2json code from our blog site.
- In order to install the plugin and make sure that you add the plugin to the plugin sequence as shown below.
plugins:
dir: ../plugins
sequence:
- edgemicro-plugins-xml2json
- accumulate-response
-
cd edgemicro-plugins-xml2json
-
Install the node modules
npm install
-
Copy the
edgemicro-plugins-xml2json
plugin folder to the/usr/local/lib/node_modules/edgemicro/plugins
directory.
sudo mkdir /usr/local/lib/node_modules/edgemicro/plugins/edgemicro-plugins-xml2json
cp -r edgemicro-plugins-xml2json /usr/local/lib/node_modules/edgemicro/plugins/edgemicro-plugins-xml2json
curl -H "x-api-key: [apikey]" https://localhost:8000/edgemicro_weather/forecastrss -vi --insecure
curl -H "x-api-key: [apikey]" http://localhost:8000/edgemicro_weather/forecastrss -vi
curl http://localhost:8000/edgemicro_weather/forecastrss -H "Authorization: Bearer token" -vi