Skip to content

Instantly share code, notes, and snippets.

@lgfa29
Created March 1, 2019 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgfa29/d965e66bf1ffa0fff7ab26f314ea98de to your computer and use it in GitHub Desktop.
Save lgfa29/d965e66bf1ffa0fff7ab26f314ea98de to your computer and use it in GitHub Desktop.
[
{
"id": "cbb0ae9a.092cd8",
"type": "http in",
"z": "9358b649.b981c8",
"name": "",
"url": "/search",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 310,
"y": 420,
"wires": [
[
"eb2ab794.5195f"
]
]
},
{
"id": "eb2ab794.5195f",
"type": "template",
"z": "9358b649.b981c8",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "timestamp:[{{ req.query.from }} TO {{ req.query.to }}] AND tweet:{{req.query.tweet}}",
"output": "str",
"x": 480,
"y": 420,
"wires": [
[
"552eb07c.6c7458"
]
]
},
{
"id": "62c9ddc9.9eae24",
"type": "http response",
"z": "9358b649.b981c8",
"name": "",
"statusCode": "",
"headers": {},
"x": 790,
"y": 420,
"wires": []
},
{
"id": "552eb07c.6c7458",
"type": "cloudant in",
"z": "9358b649.b981c8",
"name": "",
"cloudant": "",
"database": "tweets",
"service": "node-red-cloudantNoSQLDB",
"search": "_idx_",
"design": "tweet_search",
"index": "tweet_search",
"x": 650,
"y": 420,
"wires": [
[
"62c9ddc9.9eae24"
]
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment