From 2dd558a8564ff5d987a0a22ab3e79202c4c45e67 Mon Sep 17 00:00:00 2001 From: Alexander Zaslonov Date: Fri, 8 May 2020 17:39:32 -0700 Subject: [PATCH] Added support for multiple hostnames to Test console. (#603) --- .../ko/runtime/operation-console.html | 78 ++++++++++++------- .../ko/runtime/operation-console.ts | 21 ++++- .../ko/runtime/operation-details.ts | 20 ++--- src/contracts/hostname.ts | 4 + src/services/apiService.ts | 16 +++- src/services/mapiClient.ts | 11 ++- 6 files changed, 97 insertions(+), 53 deletions(-) create mode 100644 src/contracts/hostname.ts diff --git a/src/components/operations/operation-details/ko/runtime/operation-console.html b/src/components/operations/operation-details/ko/runtime/operation-console.html index 4ebe4aebd..06dcec295 100644 --- a/src/components/operations/operation-details/ko/runtime/operation-console.html +++ b/src/components/operations/operation-details/ko/runtime/operation-console.html @@ -8,7 +8,7 @@
@@ -30,6 +30,26 @@
+ + +

Host

+ +
+
+ +
+
+
+ +
+
+
+ +

Authorization

@@ -51,7 +71,7 @@

Authorization

+ data-bind="textInput: $component.selectedSubscriptionKey" />
@@ -65,8 +85,8 @@

Parameters

+ placeholder="name" spellcheck="false" aria-label="Parameter name" + data-bind="event: { keyup: $component.updateRequestSummary }, textInput: parameter.name">
@@ -75,13 +95,13 @@

Parameters

+ data-bind="value: parameter.value, options: parameter.options, optionsAfterRender: $component.updateRequestSummary, event:{ change: $component.updateRequestSummary }">
+ spellcheck="false" aria-label="Parameter value" + data-bind="event: { keyup: $component.updateRequestSummary }, textInput: parameter.value">
@@ -95,7 +115,7 @@

Parameters

+ spellcheck="false" aria-label="Parameter name" data-bind="textInput: parameter.name">
@@ -104,12 +124,12 @@

Parameters

+ data-bind="value: parameter.value, options: parameter.options, optionsAfterRender: $component.updateRequestSummary, event:{ change: $component.updateRequestSummary }"> + spellcheck="false" aria-label="Parameter value" + data-bind="event: { keyup: $component.updateRequestSummary }, textInput: parameter.value">
@@ -135,7 +155,7 @@

Headers

+ spellcheck="false" aria-label="Header name" data-bind="textInput: header.name">
@@ -144,13 +164,13 @@

Headers

+ data-bind="value: header.value, options: header.options, optionsAfterRender: $component.updateRequestSummary, event:{ change: $component.updateRequestSummary }">
+ spellcheck="false" aria-label="Header value" + data-bind="event: { keyup: $component.updateRequestSummary }, textInput: header.value">
@@ -176,24 +196,24 @@

Body

+ data-bind="checked: request.bodyFormat">
+ data-bind="checked: request.bodyFormat">
+ data-bind="event: { keyup: $component.updateRequestSummary }, textInput: request.body, valueUpdate: 'keyup'"> + data-bind="validationMessage: request.binary">
@@ -203,55 +223,55 @@

Body