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
@@ -290,6 +290,16 @@
|
|
290 |
Template Variables
|
291 |
</mat-panel-title>
|
292 |
</mat-expansion-panel-header>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
<div class="template-list">
|
294 |
<mat-chip *ngFor="let templateVar of getTemplateVariables(false)"
|
295 |
(click)="insertTemplateVariable('auth.token_request_body', templateVar)"
|
|
|
290 |
Template Variables
|
291 |
</mat-panel-title>
|
292 |
</mat-expansion-panel-header>
|
293 |
+
<div class="hint-text" style="margin-bottom: 16px; padding: 16px; background-color: #e3f2fd; border-radius: 4px;">
|
294 |
+
<mat-icon style="vertical-align: middle; color: #1976d2;">info</mat-icon>
|
295 |
+
<strong style="color: #1976d2;">Important:</strong><br>
|
296 |
+
Write all variables <strong>without quotes</strong>: <code>{{ '{' }}{{ '{' }}variables.pnr{{ '}' }}{{ '}' }}</code><br>
|
297 |
+
The system will automatically add quotes for string values during execution.<br><br>
|
298 |
+
<strong>Examples:</strong><br>
|
299 |
+
• <code>{{ '{' }} "pnr": {{ '{' }}{{ '{' }}variables.pnr{{ '}' }}{{ '}' }} {{ '}' }}</code> → <code>{{ '{' }} "pnr": "ABC123" {{ '}' }}</code><br>
|
300 |
+
• <code>{{ '{' }} "count": {{ '{' }}{{ '{' }}variables.passenger_count{{ '}' }}{{ '}' }} {{ '}' }}</code> → <code>{{ '{' }} "count": 2 {{ '}' }}</code><br>
|
301 |
+
• <code>{{ '{' }} "active": {{ '{' }}{{ '{' }}variables.enabled{{ '}' }}{{ '}' }} {{ '}' }}</code> → <code>{{ '{' }} "active": true {{ '}' }}</code>
|
302 |
+
</div>
|
303 |
<div class="template-list">
|
304 |
<mat-chip *ngFor="let templateVar of getTemplateVariables(false)"
|
305 |
(click)="insertTemplateVariable('auth.token_request_body', templateVar)"
|