|
14 | 14 | { |
15 | 15 | "name": "Example title.", |
16 | 16 | "request": { |
17 | | - "url": "http:\/\/localhost\/api\/withDescription", |
| 17 | + "url": { |
| 18 | + "protocol": "http", |
| 19 | + "host": "localhost", |
| 20 | + "path": "api\/withDescription", |
| 21 | + "query": [] |
| 22 | + }, |
18 | 23 | "method": "GET", |
19 | 24 | "header": [ |
20 | 25 | { |
|
43 | 48 | } |
44 | 49 | }, |
45 | 50 | { |
46 | | - "name": "http:\/\/localhost\/api\/withResponseTag", |
| 51 | + "name": "api\/withResponseTag", |
47 | 52 | "request": { |
48 | | - "url": "http:\/\/localhost\/api\/withResponseTag", |
| 53 | + "url": { |
| 54 | + "protocol": "http", |
| 55 | + "host": "localhost", |
| 56 | + "path": "api\/withResponseTag", |
| 57 | + "query": [] |
| 58 | + }, |
49 | 59 | "method": "GET", |
50 | 60 | "header": [ |
51 | 61 | { |
|
76 | 86 | { |
77 | 87 | "name": "Endpoint with body parameters.", |
78 | 88 | "request": { |
79 | | - "url": "http:\/\/localhost\/api\/withBodyParameters", |
| 89 | + "url": { |
| 90 | + "protocol": "http", |
| 91 | + "host": "localhost", |
| 92 | + "path": "api\/withBodyParameters", |
| 93 | + "query": [] |
| 94 | + }, |
80 | 95 | "method": "POST", |
81 | 96 | "header": [ |
82 | 97 | { |
|
105 | 120 | } |
106 | 121 | }, |
107 | 122 | { |
108 | | - "name": "http:\/\/localhost\/api\/withQueryParameters", |
| 123 | + "name": "api\/withQueryParameters", |
109 | 124 | "request": { |
110 | | - "url": "http:\/\/localhost\/api\/withQueryParameters?location_id=consequatur&user_id=me&page=4&filters=consequatur&url_encoded=%2B+%5B%5D%26%3D", |
| 125 | + "url": { |
| 126 | + "protocol": "http", |
| 127 | + "host": "localhost", |
| 128 | + "path": "api\/withQueryParameters", |
| 129 | + "query": [ |
| 130 | + { |
| 131 | + "key": "location_id", |
| 132 | + "value": "consequatur", |
| 133 | + "description": "The id of the location.", |
| 134 | + "disabled": false |
| 135 | + }, |
| 136 | + { |
| 137 | + "key": "user_id", |
| 138 | + "value": "me", |
| 139 | + "description": "The id of the user.", |
| 140 | + "disabled": false |
| 141 | + }, |
| 142 | + { |
| 143 | + "key": "page", |
| 144 | + "value": "4", |
| 145 | + "description": "The page number.", |
| 146 | + "disabled": false |
| 147 | + }, |
| 148 | + { |
| 149 | + "key": "filters", |
| 150 | + "value": "consequatur", |
| 151 | + "description": "The filters.", |
| 152 | + "disabled": false |
| 153 | + }, |
| 154 | + { |
| 155 | + "key": "url_encoded", |
| 156 | + "value": "%2B+%5B%5D%26%3D", |
| 157 | + "description": "Used for testing that URL parameters will be URL-encoded where needed.", |
| 158 | + "disabled": false |
| 159 | + } |
| 160 | + ] |
| 161 | + }, |
111 | 162 | "method": "GET", |
112 | 163 | "header": [ |
113 | 164 | { |
|
136 | 187 | } |
137 | 188 | }, |
138 | 189 | { |
139 | | - "name": "http:\/\/localhost\/api\/withAuthTag", |
| 190 | + "name": "api\/withAuthTag", |
140 | 191 | "request": { |
141 | | - "url": "http:\/\/localhost\/api\/withAuthTag", |
| 192 | + "url": { |
| 193 | + "protocol": "http", |
| 194 | + "host": "localhost", |
| 195 | + "path": "api\/withAuthTag", |
| 196 | + "query": [] |
| 197 | + }, |
142 | 198 | "method": "GET", |
143 | 199 | "header": [ |
144 | 200 | { |
|
167 | 223 | } |
168 | 224 | }, |
169 | 225 | { |
170 | | - "name": "http:\/\/localhost\/api\/withEloquentApiResource", |
| 226 | + "name": "api\/withEloquentApiResource", |
171 | 227 | "request": { |
172 | | - "url": "http:\/\/localhost\/api\/withEloquentApiResource", |
| 228 | + "url": { |
| 229 | + "protocol": "http", |
| 230 | + "host": "localhost", |
| 231 | + "path": "api\/withEloquentApiResource", |
| 232 | + "query": [] |
| 233 | + }, |
173 | 234 | "method": "GET", |
174 | 235 | "header": [ |
175 | 236 | { |
|
198 | 259 | } |
199 | 260 | }, |
200 | 261 | { |
201 | | - "name": "http:\/\/localhost\/api\/withMultipleResponseTagsAndStatusCode", |
| 262 | + "name": "api\/withMultipleResponseTagsAndStatusCode", |
202 | 263 | "request": { |
203 | | - "url": "http:\/\/localhost\/api\/withMultipleResponseTagsAndStatusCode", |
| 264 | + "url": { |
| 265 | + "protocol": "http", |
| 266 | + "host": "localhost", |
| 267 | + "path": "api\/withMultipleResponseTagsAndStatusCode", |
| 268 | + "query": [] |
| 269 | + }, |
204 | 270 | "method": "POST", |
205 | 271 | "header": [ |
206 | 272 | { |
|
235 | 301 | "description": "", |
236 | 302 | "item": [ |
237 | 303 | { |
238 | | - "name": "http:\/\/localhost\/api\/withEloquentApiResourceCollectionClass", |
| 304 | + "name": "api\/withEloquentApiResourceCollectionClass", |
239 | 305 | "request": { |
240 | | - "url": "http:\/\/localhost\/api\/withEloquentApiResourceCollectionClass", |
| 306 | + "url": { |
| 307 | + "protocol": "http", |
| 308 | + "host": "localhost", |
| 309 | + "path": "api\/withEloquentApiResourceCollectionClass", |
| 310 | + "query": [] |
| 311 | + }, |
241 | 312 | "method": "GET", |
242 | 313 | "header": [ |
243 | 314 | { |
|
266 | 337 | } |
267 | 338 | }, |
268 | 339 | { |
269 | | - "name": "http:\/\/localhost\/api\/echoesUrlParameters\/{param}-{param2}\/{param3?}", |
| 340 | + "name": "api\/echoesUrlParameters\/{param}-{param2}\/{param3?}", |
270 | 341 | "request": { |
271 | | - "url": "http:\/\/localhost\/api\/echoesUrlParameters\/{param}-{param2}\/{param3?}?something=consequatur", |
| 342 | + "url": { |
| 343 | + "protocol": "http", |
| 344 | + "host": "localhost", |
| 345 | + "path": "api\/echoesUrlParameters\/{param}-{param2}\/:param3", |
| 346 | + "query": [ |
| 347 | + { |
| 348 | + "key": "param4", |
| 349 | + "value": "", |
| 350 | + "description": "", |
| 351 | + "disabled": true |
| 352 | + }, |
| 353 | + { |
| 354 | + "key": "something", |
| 355 | + "value": "consequatur", |
| 356 | + "description": "", |
| 357 | + "disabled": false |
| 358 | + } |
| 359 | + ], |
| 360 | + "variable": [ |
| 361 | + { |
| 362 | + "id": "param", |
| 363 | + "key": "param", |
| 364 | + "value": "4", |
| 365 | + "description": "" |
| 366 | + }, |
| 367 | + { |
| 368 | + "id": "param2", |
| 369 | + "key": "param2", |
| 370 | + "value": "consequatur", |
| 371 | + "description": "" |
| 372 | + } |
| 373 | + ] |
| 374 | + }, |
272 | 375 | "method": "GET", |
273 | 376 | "header": [ |
274 | 377 | { |
|
0 commit comments