|
3 | 3 | {
|
4 | 4 | "request": {
|
5 | 5 | "method": "GET",
|
6 |
| - "url": "/campaign-distribution/campaigns" |
| 6 | + "url": "/campaign-distribution/android/campaigns" |
7 | 7 | },
|
8 | 8 |
|
9 | 9 | "response": {
|
10 | 10 | "status": 200,
|
11 |
| - "body": "{\"Length\":2,\"Campaigns\":[{\"AppID\":\"553834731\",\"AppName\":\"App1\",\"CreativeID\":\"one\",\"ClickURL\":\"/campaign-click/click/123\",\"ViewURL\":\"/campaign-view/view/123\"}]}", |
| 11 | + "body": "{\"Length\":3,\"Campaigns\":[{\"AppID\":\"6458097001\",\"AppName\":\"Archery Clash\",\"CreativeID\":\"31f15623-57c6-450e-82eb-1fda52cade22\",\"ClickURL\":\"/campaign-click/click/123\",\"ViewURL\":\"/campaign-view/view/123\"},{\"AppID\":\"ball.sort.color.puz.game.puzzle\",\"AppName\":\"Ballsort\",\"CreativeID\":\"7f79cb7e-9285-442e-9e64-e861c9b1e60c\",\"ClickURL\":\"/campaign-click/click/321\",\"ViewURL\":\"/campaign-view/view/321\"}]}", |
12 | 12 | "headers": {
|
13 | 13 | "Content-Type": "text/json"
|
14 | 14 | },
|
|
19 | 19 | }
|
20 | 20 | }
|
21 | 21 | },
|
| 22 | + { |
| 23 | + "request": { |
| 24 | + "method": "GET", |
| 25 | + "url": "/campaign-distribution/ios/campaigns" |
| 26 | + }, |
| 27 | + "response": { |
| 28 | + "status": 200, |
| 29 | + "body": "{\"Campaigns\":[{\"AppID\":\"6466648550\",\"AppName\":\"Warriors\",\"CreativeID\":\"356054a8-7129-474b-848f-4aa6e164c492\",\"ClickURL\":\"/campaign-click/click/456\",\"ViewURL\":\"/campaign-view/view/456\"},{\"AppID\":\"1494108691\",\"AppName\":\"Sort puzzle\",\"CreativeID\":\"356054a8-7129-474b-848f-4aa6e164c492\",\"ClickURL\":\"/campaign-click/click/567\",\"ViewURL\":\"/campaign-view/view/567\"}]}", |
| 30 | + "headers": { |
| 31 | + "Content-Type": "text/json" |
| 32 | + } |
| 33 | + } |
| 34 | + }, |
| 35 | + { |
| 36 | + "priority": 1, |
| 37 | + "request": { |
| 38 | + "method": "POST", |
| 39 | + "url": "/campaign-click/click/321", |
| 40 | + "bodyPatterns": [ |
| 41 | + { |
| 42 | + "matchesJsonSchema": { |
| 43 | + "type": "object", |
| 44 | + "required": ["CreativeID"], |
| 45 | + "properties": { |
| 46 | + "CreativeID": { |
| 47 | + "type": "string" |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | + } |
| 52 | + ] |
| 53 | + }, |
| 54 | + "response": { |
| 55 | + "status": 200, |
| 56 | + "body": "{\"StoreURL\":\"https://play.google.com/store/apps/details?id=ball.sort.color.puz.game.puzzle\"}", |
| 57 | + "headers": { |
| 58 | + "Content-Type": "text/json" |
| 59 | + } |
| 60 | + } |
| 61 | + }, |
22 | 62 | {
|
23 | 63 | "priority": 1,
|
24 | 64 | "request": {
|
25 | 65 | "method": "POST",
|
26 | 66 | "url": "/campaign-click/click/123",
|
27 |
| - "bodyPatterns": [{ "equalToJson": "{\"CreativeID\":\"one\"}" }] |
| 67 | + "bodyPatterns": [ |
| 68 | + { |
| 69 | + "matchesJsonSchema": { |
| 70 | + "type": "object", |
| 71 | + "required": ["CreativeID"], |
| 72 | + "properties": { |
| 73 | + "CreativeID": { |
| 74 | + "type": "string" |
| 75 | + } |
| 76 | + } |
| 77 | + } |
| 78 | + } |
| 79 | + ] |
| 80 | + }, |
| 81 | + "response": { |
| 82 | + "status": 200, |
| 83 | + "body": "{\"StoreURL\":\"https://apps.apple.com/us/app/id6458097001\"}", |
| 84 | + "headers": { |
| 85 | + "Content-Type": "text/json" |
| 86 | + } |
| 87 | + } |
| 88 | + }, |
| 89 | + { |
| 90 | + "priority": 1, |
| 91 | + "request": { |
| 92 | + "method": "POST", |
| 93 | + "url": "/campaign-click/click/456", |
| 94 | + "bodyPatterns": [ |
| 95 | + { |
| 96 | + "matchesJsonSchema": { |
| 97 | + "type": "object", |
| 98 | + "required": ["CreativeID"], |
| 99 | + "properties": { |
| 100 | + "CreativeID": { |
| 101 | + "type": "string" |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | + } |
| 106 | + ] |
| 107 | + }, |
| 108 | + "response": { |
| 109 | + "status": 200, |
| 110 | + "body": "{\"StoreURL\":\"https://apps.apple.com/us/app/id666648550\"}", |
| 111 | + "headers": { |
| 112 | + "Content-Type": "text/json" |
| 113 | + } |
| 114 | + } |
| 115 | + }, |
| 116 | + { |
| 117 | + "priority": 1, |
| 118 | + "request": { |
| 119 | + "method": "POST", |
| 120 | + "url": "/campaign-click/click/567", |
| 121 | + "bodyPatterns": [ |
| 122 | + { |
| 123 | + "matchesJsonSchema": { |
| 124 | + "type": "object", |
| 125 | + "required": ["CreativeID"], |
| 126 | + "properties": { |
| 127 | + "CreativeID": { |
| 128 | + "type": "string" |
| 129 | + } |
| 130 | + } |
| 131 | + } |
| 132 | + } |
| 133 | + ] |
28 | 134 | },
|
29 |
| - |
30 | 135 | "response": {
|
31 | 136 | "status": 200,
|
32 |
| - "body": "{\"StoreURL\":\"https://apps.apple.com/us/app/id553834731\"}", |
| 137 | + "body": "{\"StoreURL\":\"https://apps.apple.com/us/app/id1494108691\"}", |
33 | 138 | "headers": {
|
34 | 139 | "Content-Type": "text/json"
|
35 | 140 | }
|
|
83 | 188 | "url": "/campaign-view/view/123",
|
84 | 189 | "bodyPatterns": [
|
85 | 190 | {
|
86 |
| - "equalToJson": "{\"CreativeID\":\"one\"}" |
| 191 | + "equalToJson": "{\"CreativeID\":\"31f15623-57c6-450e-82eb-1fda52cade22\"}" |
| 192 | + } |
| 193 | + ] |
| 194 | + }, |
| 195 | + |
| 196 | + "response": { |
| 197 | + "status": 301, |
| 198 | + "body": "{\"RedirectURL\":\"https://apps.apple.com/us/app/id6466648550\"}", |
| 199 | + "headers": { |
| 200 | + "Content-Type": "text/json" |
| 201 | + } |
| 202 | + } |
| 203 | + }, |
| 204 | + { |
| 205 | + "priority": 1, |
| 206 | + "request": { |
| 207 | + "method": "POST", |
| 208 | + "url": "/campaign-view/view/321", |
| 209 | + "bodyPatterns": [ |
| 210 | + { |
| 211 | + "equalToJson": "{\"CreativeID\":\"7f79cb7e-9285-442e-9e64-e861c9b1e60c\"}" |
| 212 | + } |
| 213 | + ] |
| 214 | + }, |
| 215 | + |
| 216 | + "response": { |
| 217 | + "status": 301, |
| 218 | + "body": "{\"RedirectURL\":\"https://play.google.com/store/apps/details?id=ball.sort.color.puz.game.puzzle\"}", |
| 219 | + "headers": { |
| 220 | + "Content-Type": "text/json" |
| 221 | + } |
| 222 | + } |
| 223 | + }, |
| 224 | + { |
| 225 | + "priority": 1, |
| 226 | + "request": { |
| 227 | + "method": "POST", |
| 228 | + "url": "/campaign-view/view/456", |
| 229 | + "bodyPatterns": [ |
| 230 | + { |
| 231 | + "equalToJson": "{\"CreativeID\":\"356054a8-7129-474b-848f-4aa6e164c492\"}" |
87 | 232 | }
|
88 | 233 | ]
|
89 | 234 | },
|
90 | 235 |
|
91 | 236 | "response": {
|
92 | 237 | "status": 301,
|
93 |
| - "body": "{\"RedirectURL\":\"https://apps.apple.com/us/app/id553834731\"}", |
| 238 | + "body": "{\"RedirectURL\":\"https://apps.apple.com/us/app/id6466648550\"}", |
| 239 | + "headers": { |
| 240 | + "Content-Type": "text/json" |
| 241 | + } |
| 242 | + } |
| 243 | + }, |
| 244 | + { |
| 245 | + "priority": 1, |
| 246 | + "request": { |
| 247 | + "method": "POST", |
| 248 | + "url": "/campaign-view/view/567", |
| 249 | + "bodyPatterns": [ |
| 250 | + { |
| 251 | + "equalToJson": "{\"CreativeID\":\"356054a8-7129-474b-848f-4aa6e164c492\"}" |
| 252 | + } |
| 253 | + ] |
| 254 | + }, |
| 255 | + |
| 256 | + "response": { |
| 257 | + "status": 301, |
| 258 | + "body": "{\"RedirectURL\":\"https://apps.apple.com/us/app/id1494108691\"}", |
94 | 259 | "headers": {
|
95 | 260 | "Content-Type": "text/json"
|
96 | 261 | }
|
|
100 | 265 | "priority": 2,
|
101 | 266 | "request": {
|
102 | 267 | "method": "POST",
|
103 |
| - "url": "/campaign-view/view/123", |
| 268 | + "url": "/campaign-view/view/[0-9]*", |
104 | 269 | "bodyPatterns": [
|
105 | 270 | {
|
106 | 271 | "matchesJsonSchema": {
|
|
0 commit comments