-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapi_caching.json
More file actions
162 lines (162 loc) · 3.62 KB
/
Copy pathapi_caching.json
File metadata and controls
162 lines (162 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "Dynamic API Call Caching",
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-496, -352],
"id": "ef27f4ff-e228-46eb-ba45-5c2b92ee611f"
},
{
"parameters": {
"url": "https://jsonplaceholder.typicode.com/posts",
"options": {}
},
"name": "Get All Posts",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [-288, -352],
"id": "04a9a438-e0b9-406f-8081-5806e749461d"
},
{
"parameters": {
"force": false,
"cacheKeyFields": "id",
"bucket": "my-bucket",
"cacheDir": "$smartcache/dynamic-api-calls"
},
"name": "SmartCache",
"type": "n8n-nodes-smartcache.smartCache",
"typeVersion": 1,
"position": [160, -336],
"id": "49d54524-e1a0-4dff-b727-b0814f0354f4"
},
{
"parameters": {
"url": "=https://jsonplaceholder.typicode.com/posts/{{$json.id}}",
"options": {}
},
"name": "Get Post Details",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [352, -240],
"id": "ef452a82-efba-4794-bcad-ea46d40fa6dd"
},
{
"parameters": {},
"name": "Final Result",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [544, -336],
"id": "1e80a65f-bd21-4a3d-acd9-ba7de0860323"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "967d140d-00c8-4e93-9f20-6ba0d68e8e96",
"leftValue": "={{ $json.userId }}",
"rightValue": 1,
"operator": {
"type": "number",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.filter",
"typeVersion": 2.2,
"position": [-80, -352],
"id": "bae5a0d2-565f-44cb-9572-d1add81f53c0",
"name": "Posts Created by User 1"
}
],
"pinData": {},
"connections": {
"Start": {
"main": [
[
{
"node": "Get All Posts",
"type": "main",
"index": 0
}
]
]
},
"Get All Posts": {
"main": [
[
{
"node": "Posts Created by User 1",
"type": "main",
"index": 0
}
]
]
},
"SmartCache": {
"main": [
[
{
"node": "Final Result",
"type": "main",
"index": 0
}
],
[
{
"node": "Get Post Details",
"type": "main",
"index": 0
}
]
]
},
"Get Post Details": {
"main": [
[
{
"node": "SmartCache",
"type": "main",
"index": 1
}
]
]
},
"Posts Created by User 1": {
"main": [
[
{
"node": "SmartCache",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "f3699e56-74d3-4a22-b9ab-a8c48289f856",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "3220869e13eb48e3b75906b6c7047b653dc50ec0815ebf8e5d8a10f74072c08e"
},
"id": "lpjnl6TNpHfYZICG",
"tags": []
}