|
7 | 7 | "spec": { |
8 | 8 | "splits": [ |
9 | 9 | { |
10 | | - "uuid": "3_c57e811f-2da8-557e-a402-9f0950407675", |
| 10 | + "uuid": "2_c57e811f-2da8-557e-a402-9f0950407675", |
11 | 11 | "blocks": [ |
12 | 12 | { |
13 | 13 | "response": { |
|
305 | 305 | "state": "valid-response" |
306 | 306 | }, |
307 | 307 | { |
308 | | - "response": true, |
309 | | - "historyIdx": 251, |
| 308 | + "response": { |
| 309 | + "apiVersion": "kui-shell/v1", |
| 310 | + "kind": "NavResponse", |
| 311 | + "breadcrumbs": [ |
| 312 | + { |
| 313 | + "label": "Help" |
| 314 | + }, |
| 315 | + { |
| 316 | + "label": "HTTP Shell" |
| 317 | + } |
| 318 | + ], |
| 319 | + "menus": [ |
| 320 | + { |
| 321 | + "label": "Available commands", |
| 322 | + "items": [ |
| 323 | + { |
| 324 | + "mode": "Authentication", |
| 325 | + "contentType": "text/markdown", |
| 326 | + "content": "\n#### set auth\nOpens a dialog to sets the basic authentication credentials to use in further requests\n> e.g. [`h set auth`](#kuiexec?command=h%20set%20auth)\n\n#### reset auth\nClear the basic authentication credentials\n> e.g. [`h reset auth`](#kuiexec?command=h%20reset%20auth)\n" |
| 327 | + }, |
| 328 | + { |
| 329 | + "mode": "Configuration", |
| 330 | + "contentType": "text/markdown", |
| 331 | + "content": "\n#### set url <url>\nSets the base url to use in further requests. If <url> does not include the protocol, http is assumed. If <url> only specifies the port (e.g. :8080), localhost is assumed\n> e.g. [`h set url http://127.0.0.1:8080`](#kuiexec?command=h%20set%20url%20http%3A%2F%2F127.0.0.1%3A8080)\n\n#### [get url](#kuiexec?command=h%20get%20url)\nPrints the base url\n\n#### edit <file>\nOpens <file> for editing. Tip, hit key F1 for list of editor commands\n> e.g. [`edit body.json`](#kuiexec?command=edit%20body.json)\n" |
| 332 | + }, |
| 333 | + { |
| 334 | + "mode": "Access Methods", |
| 335 | + "contentType": "text/markdown", |
| 336 | + "content": "\n#### get <uri>\nExecutes the GET request to url=<base-url>+<uri>\n> e.g. [`h get /messages`](#kuiexec?command=h%20get%20/messages)\n\n#### post <uri> <file>\nExecutes the request POST <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h post /messages msg.json`](#kuiexec?command=h%20post%20%2Fmessages%20msg.json)\n\n#### put <uri> <file>\nExecutes the request PUT <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h put /messages/foo msg.json`](#kuiexec?command=h%20put%20%2Fmessages%2Ffoo%20msg.json)\n\n#### patch <uri> <file>\nExecutes the request PATCH <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h patch /messages msg.json`](#kuiexec?command=h%20patch%20%2Fmessages%20msg.json)\n\n#### delete <uri>\nExecutes the DELETE request to url=<base-url>+<uri>\n\n#### set header <name> <value>\nSet the header <name> to <value>\n> e.g. [`h set header Authorization \"Bearer 5f7f35efcb800f2502f95cb5\"`](#kuiexec?command=h%20set%20header%20Authorization%20\"Bearer%205f7f35efcb800f2502f95cb5\")\n\n#### [get headers](#kuiexec?command=h%20get%20headers)\nPrints the current set headers\n> e.g. [`h get headers`](#kuiexec?command=h%20get%20headers)\n\n#### [reset headers](#kuiexec?command=h%20reset%20headers)\nClears the headers\n> e.g. [`h reset headers`](#kuiexec?command=h%20reset%20headers)\n" |
| 337 | + } |
| 338 | + ] |
| 339 | + } |
| 340 | + ] |
| 341 | + }, |
| 342 | + "historyIdx": 11, |
310 | 343 | "cwd": "~/development/http-shell", |
311 | 344 | "command": "help http-shell", |
312 | 345 | "startEvent": { |
313 | 346 | "route": "/help/http-shell", |
314 | | - "startTime": 1602238674617, |
| 347 | + "startTime": 1603990807370, |
315 | 348 | "command": "help http-shell", |
316 | 349 | "evaluatorOptions": { |
| 350 | + "usage": { |
| 351 | + "title": "HTTP Shell", |
| 352 | + "header": "Commands to execute HTTP Shell requests", |
| 353 | + "available": [ |
| 354 | + { |
| 355 | + "command": "h set auth", |
| 356 | + "docs": "sets the basic authentication credentials" |
| 357 | + }, |
| 358 | + { |
| 359 | + "command": "h set url", |
| 360 | + "docs": "sets the base-url" |
| 361 | + }, |
| 362 | + { |
| 363 | + "command": "h get url", |
| 364 | + "docs": "prints the base-url" |
| 365 | + }, |
| 366 | + { |
| 367 | + "command": "h get <uri>", |
| 368 | + "docs": "executes the GET request to url=<base-url>+<uri>" |
| 369 | + }, |
| 370 | + { |
| 371 | + "command": "h post <uri> <file>", |
| 372 | + "docs": "executes the POST request to url=<base-url>+<uri>" |
| 373 | + } |
| 374 | + ] |
| 375 | + }, |
317 | 376 | "plugin": "plugin-http-shell" |
318 | 377 | }, |
319 | | - "execType": 0, |
320 | | - "execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199" |
| 378 | + "execType": 3, |
| 379 | + "execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199", |
| 380 | + "execOptions": { |
| 381 | + "echo": true, |
| 382 | + "type": 3, |
| 383 | + "execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199", |
| 384 | + "history": 11, |
| 385 | + "env": {} |
| 386 | + }, |
| 387 | + "echo": true |
321 | 388 | }, |
322 | 389 | "completeEvent": { |
323 | | - "execType": 0, |
324 | | - "completeTime": 1602238674736, |
| 390 | + "execType": 3, |
| 391 | + "completeTime": 1603990807411, |
325 | 392 | "command": "help http-shell", |
326 | 393 | "argvNoOptions": [ |
327 | 394 | "help", |
328 | | - "help-shell" |
| 395 | + "http-shell" |
329 | 396 | ], |
330 | 397 | "parsedOptions": { |
331 | 398 | "_": [ |
332 | 399 | "help", |
333 | | - "help-shell" |
| 400 | + "http-shell" |
334 | 401 | ] |
335 | 402 | }, |
336 | 403 | "execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199", |
337 | 404 | "cancelled": false, |
| 405 | + "echo": true, |
338 | 406 | "evaluatorOptions": { |
339 | 407 | "plugin": "plugin-http-shell" |
340 | 408 | }, |
341 | 409 | "execOptions": { |
342 | | - "type": 0, |
343 | | - "language": "it", |
| 410 | + "echo": true, |
| 411 | + "type": 3, |
344 | 412 | "execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199", |
345 | | - "history": 251, |
| 413 | + "history": 11, |
346 | 414 | "env": {} |
347 | 415 | }, |
348 | 416 | "response": { |
349 | | - "metadata": { |
350 | | - "name": "HTTP Shell Help" |
351 | | - }, |
352 | | - "kind": "Top", |
353 | | - "modes": [ |
| 417 | + "apiVersion": "kui-shell/v1", |
| 418 | + "kind": "NavResponse", |
| 419 | + "breadcrumbs": [ |
354 | 420 | { |
355 | | - "mode": "Available commands", |
356 | | - "content": "\n| command | description | example\n|---|---|---|\n| set auth <id> <password> | sets the basic authentication credentials to use in further requests | > set auth admin secret |\n| get auth | prints the basic authentication credentials | > get auth |\n| set url <url> | sets the base url to use in further requests | > set url http://127.0.0.1:8080 |\n| get url | prints the base url | > get url |\n| get <uri> | executes the GET request to url=<base-url>+<uri> | > get /collection |\n| edit <file> | opens <file> for editing | > edit body.json |\n| post <uri> <file> | executes the request POST <base-url>+<uri>, sending the content of <file> as the request body | > post /collection body.json |\n| put <uri> <file> | executes the request PUT <base-url>+<uri>, sending the content of <file> as the request body | > put /collection body.json |\n| patch <uri> <file> | executes the request PATCH <base-url>+<uri>, sending the content of <file> as the request body | > patch /collection body.json |\n| delete <uri> | executes the DELETE request to url=<base-url>+<uri> | > delete /collection |\n| set header <name> <value> | set the header <name> to <value> | > set header If-Match 5f7f35efcb800f2502f95cb5 |\n| get headers | prints the current set headers | > get headers |\n| clear headers | clears the headers | > clear headers |\n\n", |
357 | | - "contentType": "text/markdown" |
| 421 | + "label": "Help" |
| 422 | + }, |
| 423 | + { |
| 424 | + "label": "HTTP Shell" |
| 425 | + } |
| 426 | + ], |
| 427 | + "menus": [ |
| 428 | + { |
| 429 | + "label": "Available commands", |
| 430 | + "items": [ |
| 431 | + { |
| 432 | + "mode": "Authentication", |
| 433 | + "contentType": "text/markdown", |
| 434 | + "content": "\n#### set auth\nOpens a dialog to sets the basic authentication credentials to use in further requests\n> e.g. [`h set auth`](#kuiexec?command=h%20set%20auth)\n\n#### reset auth\nClear the basic authentication credentials\n> e.g. [`h reset auth`](#kuiexec?command=h%20reset%20auth)\n" |
| 435 | + }, |
| 436 | + { |
| 437 | + "mode": "Configuration", |
| 438 | + "contentType": "text/markdown", |
| 439 | + "content": "\n#### set url <url>\nSets the base url to use in further requests. If <url> does not include the protocol, http is assumed. If <url> only specifies the port (e.g. :8080), localhost is assumed\n> e.g. [`h set url http://127.0.0.1:8080`](#kuiexec?command=h%20set%20url%20http%3A%2F%2F127.0.0.1%3A8080)\n\n#### [get url](#kuiexec?command=h%20get%20url)\nPrints the base url\n\n#### edit <file>\nOpens <file> for editing. Tip, hit key F1 for list of editor commands\n> e.g. [`edit body.json`](#kuiexec?command=edit%20body.json)\n" |
| 440 | + }, |
| 441 | + { |
| 442 | + "mode": "Access Methods", |
| 443 | + "contentType": "text/markdown", |
| 444 | + "content": "\n#### get <uri>\nExecutes the GET request to url=<base-url>+<uri>\n> e.g. [`h get /messages`](#kuiexec?command=h%20get%20/messages)\n\n#### post <uri> <file>\nExecutes the request POST <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h post /messages msg.json`](#kuiexec?command=h%20post%20%2Fmessages%20msg.json)\n\n#### put <uri> <file>\nExecutes the request PUT <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h put /messages/foo msg.json`](#kuiexec?command=h%20put%20%2Fmessages%2Ffoo%20msg.json)\n\n#### patch <uri> <file>\nExecutes the request PATCH <base-url>+<uri>, sending the content of <file> as the request body\n> e.g. [`h patch /messages msg.json`](#kuiexec?command=h%20patch%20%2Fmessages%20msg.json)\n\n#### delete <uri>\nExecutes the DELETE request to url=<base-url>+<uri>\n\n#### set header <name> <value>\nSet the header <name> to <value>\n> e.g. [`h set header Authorization \"Bearer 5f7f35efcb800f2502f95cb5\"`](#kuiexec?command=h%20set%20header%20Authorization%20\"Bearer%205f7f35efcb800f2502f95cb5\")\n\n#### [get headers](#kuiexec?command=h%20get%20headers)\nPrints the current set headers\n> e.g. [`h get headers`](#kuiexec?command=h%20get%20headers)\n\n#### [reset headers](#kuiexec?command=h%20reset%20headers)\nClears the headers\n> e.g. [`h reset headers`](#kuiexec?command=h%20reset%20headers)\n" |
| 445 | + } |
| 446 | + ] |
358 | 447 | } |
359 | 448 | ] |
360 | 449 | }, |
361 | | - "responseType": "MultiModalResponse", |
362 | | - "historyIdx": 251 |
| 450 | + "responseType": "NavResponse", |
| 451 | + "historyIdx": 11 |
363 | 452 | }, |
364 | 453 | "isExperimental": false, |
365 | 454 | "isReplay": true, |
366 | 455 | "execUUID": "8f31f28d-c56f-4131-b42a-d0ecc919f199", |
367 | | - "startTime": 1602238674617, |
368 | | - "prefersTerminalPresentation": false, |
| 456 | + "startTime": 1603990807370, |
369 | 457 | "outputOnly": false, |
370 | 458 | "state": "valid-response" |
371 | 459 | } |
|
0 commit comments