|
2 | 2 | "defaultDelay": 250, |
3 | 3 | "defaultHttpCode": 200, |
4 | 4 | "defaultMethod": "GET", |
5 | | - "apisDirectories": [ |
6 | | - "Config/Api/User" |
7 | | - ], |
8 | | - "apis": [ |
| 5 | + "defaultCookies": [ |
9 | 6 | { |
10 | | - "url": "http://localhost:8080/api/users/{idUser}", |
11 | | - "responses": [ |
12 | | - { |
13 | | - "active": 1, |
14 | | - "delay": 300, |
15 | | - "method": "GET", |
16 | | - "httpCode": 200, |
17 | | - "response": "{ 'firstname': 'john', 'lastname':'doe', 'id': 567 }" |
18 | | - }, |
19 | | - { |
20 | | - "active": 1, |
21 | | - "delay": 300, |
22 | | - "method": "PUT", |
23 | | - "httpCode": 200, |
24 | | - "response": "{ 'firstname': 'johnny', 'lastname':'doedoe', 'id': 567 }" |
25 | | - } |
26 | | - ] |
| 7 | + "name": "cookie1", |
| 8 | + "value": "valCookie1", |
| 9 | + "comment": "Comment1", |
| 10 | + "discard": 0, |
| 11 | + "domain": "domain1", |
| 12 | + "expired": 1, |
| 13 | + "expires": "2012-10-12", |
| 14 | + "httpOnly": 1, |
| 15 | + "path": "path1", |
| 16 | + "port": "\"8080\", \"8090\"", |
| 17 | + "secure": 1, |
| 18 | + "version": 54 |
27 | 19 | }, |
28 | 20 | { |
29 | | - "url": "http://localhost:8080/api/orders/{orderId}/addresses/{addressId}}", |
30 | | - "responses": [ |
31 | | - { |
32 | | - "active": 1, |
33 | | - "delay": 135, |
34 | | - "httpCode": 200, |
35 | | - "cookies": [ |
36 | | - { |
37 | | - "name": "cookie1", |
38 | | - "value": "valCookie1", |
39 | | - "comment": "Comment1", |
40 | | - "discard": 0, |
41 | | - "domain": "domain1", |
42 | | - "expired": 1, |
43 | | - "expires": "2012-10-12", |
44 | | - "httpOnly": 1, |
45 | | - "path": "path1", |
46 | | - "port": "\"8080\", \"8090\"", |
47 | | - "secure": 1, |
48 | | - "version": 54 |
49 | | - }, |
50 | | - { |
51 | | - "name": "cookie2", |
52 | | - "value": "valCookie2" |
53 | | - } |
54 | | - ], |
55 | | - "headers": [ |
56 | | - { |
57 | | - "name": "header1", |
58 | | - "value": "valHeader1" |
59 | | - }, |
60 | | - { |
61 | | - "name": "header2", |
62 | | - "value": "valHeader2 " |
63 | | - } |
64 | | - ], |
65 | | - "response": "{ 'orderId': 345, 'streetAddress':'2762 Highland Drive', 'city': 'Nina' }" |
66 | | - }, |
67 | | - { |
68 | | - "active": 0, |
69 | | - "delay": 5000, |
70 | | - "httpCode": 203, |
71 | | - "response": "{ 'orderId': 345, 'streetAddress':'2762 Highland Drive', 'city': 'Nina' }" |
72 | | - } |
73 | | - ] |
74 | | - }, |
75 | | - { |
76 | | - "url": "http://localhost:8080/api/ad/{adId}", |
77 | | - "responses": [ |
78 | | - { |
79 | | - "active": 1, |
80 | | - "httpCode": 400, |
81 | | - "webExceptionMessage": "Invalid ad id" |
82 | | - } |
83 | | - ] |
84 | | - }, |
| 21 | + "name": "cookie2", |
| 22 | + "value": "valCookie2" |
| 23 | + } |
| 24 | + ], |
| 25 | + "defaultHeaders": [ |
85 | 26 | { |
86 | | - "url": "http://localhost:8080/api/ad/{adId}/custom-error", |
87 | | - "responses": [ |
88 | | - { |
89 | | - "active": 1, |
90 | | - "httpCode": 500, |
91 | | - "customApiException": |
92 | | - { |
93 | | - "fullTypeName": "App.CustomWebException, App", |
94 | | - "constructorArgs": [ |
95 | | - "custom exception message" |
96 | | - ] |
97 | | - } |
98 | | - } |
99 | | - ] |
| 27 | + "name": "header1", |
| 28 | + "value": "valHeader1" |
100 | 29 | }, |
101 | 30 | { |
102 | | - "url": "http://localhost:8080/api/get-file", |
103 | | - "responses": [ |
104 | | - { |
105 | | - "active": 1, |
106 | | - "httpCode": 200, |
107 | | - "file": "DownloadFile.txt" |
108 | | - } |
109 | | - ] |
| 31 | + "name": "header2", |
| 32 | + "value": "valHeader2 " |
110 | 33 | } |
| 34 | + ], |
| 35 | + "apisDirectories": [ |
| 36 | + "Config/Api/User" |
111 | 37 | ] |
112 | 38 | } |
0 commit comments