@educorvi/rita-plugin-http
v1.1.4
Published
A plugin to use http requests in rita
Downloads
81
Readme
Rita Plugin HTTP
Fetches an URL and expects an JSON object as response. This JSON object will then be used to enrich the data.
Usage
{
"type": "plugin",
"name": "http",
"options": {
"url": "https://example.com/api",
"method": "POST",
"limitTo": ["member", "visit.priceWithoutTax"]
},
"formula": {
"type": "atom",
"path": "keyInResponse"
}
}
Options
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.