1.1.4 • Published 1 year ago
@educorvi/rita-plugin-http v1.1.4
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
urlis the url to fetch from.method(optional) is the HTTP method to use. CurrentlyGETandPOSTare supported. WhenPOSTis 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.