rita-plugin-http
/
1.1.1
rita-plugin-http 1.1.1
Install from the command line:
Learn more about npm packages
$ npm install @educorvi/rita-plugin-http@1.1.1
Install via package.json:
"@educorvi/rita-plugin-http": "1.1.1"
About this version
Fetches an URL and expects an JSON object as response. This JSON object will then be used to enrich the data.
{
"type": "plugin",
"name": "http",
"options": {
"url": "https://example.com/api",
"method": "POST",
"limitTo": ["member", "visit.priceWithoutTax"]
},
"formula": {
"type": "atom",
"path": "keyInResponse"
}
}
-
url
is the url to fetch from. -
method
(optional) is the HTTP method to use. CurrentlyGET
andPOST
are supported. WhenPOST
is selected, the current data will be passed via the requests body. -
limitTo
(optional) limits the keys that are send in the body when usingPOST
. If undefined all properties will be posted.