Spaces:
Running
Running
Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.html
Browse files
flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.html
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
<label class="section-label">Body Template:</label>
|
40 |
<div class="json-editor">
|
41 |
<textarea formControlName="body_template"
|
42 |
-
placeholder='{"key": "
|
43 |
rows="8"
|
44 |
class="json-textarea"></textarea>
|
45 |
<div class="template-helpers">
|
@@ -51,9 +51,9 @@
|
|
51 |
</mat-panel-title>
|
52 |
</mat-expansion-panel-header>
|
53 |
<div class="template-list">
|
54 |
-
<mat-chip *ngFor="let
|
55 |
-
(click)="insertTemplateVariable('body_template',
|
56 |
-
{{
|
57 |
</mat-chip>
|
58 |
</div>
|
59 |
</mat-expansion-panel>
|
@@ -103,7 +103,7 @@
|
|
103 |
<textarea matInput formControlName="response_prompt"
|
104 |
rows="4"
|
105 |
placeholder="Convert the API response to human-friendly text..."></textarea>
|
106 |
-
<mat-hint>Use {{api_response}} to reference the API response</mat-hint>
|
107 |
</mat-form-field>
|
108 |
|
109 |
<mat-form-field appearance="outline" class="full-width">
|
@@ -161,7 +161,7 @@
|
|
161 |
</mat-expansion-panel-header>
|
162 |
<div class="common-headers">
|
163 |
<p><strong>Content-Type:</strong> application/json</p>
|
164 |
-
<p><strong>Authorization:</strong> Bearer {{auth_tokens.api_name.token}}</p>
|
165 |
<p><strong>Accept:</strong> application/json</p>
|
166 |
</div>
|
167 |
</mat-expansion-panel>
|
@@ -228,7 +228,7 @@
|
|
228 |
<label class="section-label">Token Refresh Body:</label>
|
229 |
<div class="json-editor">
|
230 |
<textarea formControlName="token_refresh_body"
|
231 |
-
placeholder='{"refresh_token": "
|
232 |
rows="4"
|
233 |
class="json-textarea"></textarea>
|
234 |
<button mat-button type="button"
|
|
|
39 |
<label class="section-label">Body Template:</label>
|
40 |
<div class="json-editor">
|
41 |
<textarea formControlName="body_template"
|
42 |
+
placeholder='{"key": "value"}'
|
43 |
rows="8"
|
44 |
class="json-textarea"></textarea>
|
45 |
<div class="template-helpers">
|
|
|
51 |
</mat-panel-title>
|
52 |
</mat-expansion-panel-header>
|
53 |
<div class="template-list">
|
54 |
+
<mat-chip *ngFor="let templateVar of templateVariables"
|
55 |
+
(click)="insertTemplateVariable('body_template', templateVar.key)">
|
56 |
+
{{ templateVar.key }}
|
57 |
</mat-chip>
|
58 |
</div>
|
59 |
</mat-expansion-panel>
|
|
|
103 |
<textarea matInput formControlName="response_prompt"
|
104 |
rows="4"
|
105 |
placeholder="Convert the API response to human-friendly text..."></textarea>
|
106 |
+
<mat-hint>Use {{'{{api_response}}'}} to reference the API response</mat-hint>
|
107 |
</mat-form-field>
|
108 |
|
109 |
<mat-form-field appearance="outline" class="full-width">
|
|
|
161 |
</mat-expansion-panel-header>
|
162 |
<div class="common-headers">
|
163 |
<p><strong>Content-Type:</strong> application/json</p>
|
164 |
+
<p><strong>Authorization:</strong> Bearer {{'{{auth_tokens.api_name.token}}'}}</p>
|
165 |
<p><strong>Accept:</strong> application/json</p>
|
166 |
</div>
|
167 |
</mat-expansion-panel>
|
|
|
228 |
<label class="section-label">Token Refresh Body:</label>
|
229 |
<div class="json-editor">
|
230 |
<textarea formControlName="token_refresh_body"
|
231 |
+
placeholder='{"refresh_token": "value"}'
|
232 |
rows="4"
|
233 |
class="json-textarea"></textarea>
|
234 |
<button mat-button type="button"
|