{ "$schema": "../../shared/schemas/conductor-project.schema.json", "schemaVersion": "0.1.0", "project": { "id": "proj_input_request_binding", "name": "Input-to-Request Binding Demo", "description": "Step 16 example: a Text Input feeds a query parameter into a REST action via {{components.hostnameInput.value}} template interpolation. The response is displayed in a JsonViewer.", "pages": [ { "id": "page_main", "name": "Main Page", "order": 0, "components": [ { "id": "input_hostname", "type": "TextInput", "name": "hostnameInput", "position": { "x": 40, "y": 40 }, "size": { "width": 320, "height": 40 }, "properties": { "label": "Hostname", "placeholder": "e.g. test-host-123", "defaultValue": "", "visible": true, "disabled": false }, "events": [], "bindings": [] }, { "id": "btn_run", "type": "Button", "name": "runButton", "position": { "x": 40, "y": 100 }, "size": { "width": 160, "height": 40 }, "properties": { "label": "Fetch Data", "visible": true, "disabled": false }, "events": [ { "event": "onClick", "actionId": "action_httpbin" } ], "bindings": [] }, { "id": "viewer_result", "type": "JsonViewer", "name": "resultsViewer", "position": { "x": 40, "y": 160 }, "size": { "width": 560, "height": 300 }, "properties": { "label": "Response", "visible": true, "disabled": false }, "events": [], "bindings": [] } ], "events": [] } ], "actions": [ { "id": "action_httpbin", "name": "Httpbin GET with Input", "description": "GET to httpbin.org with a query parameter interpolated from the hostnameInput Text Input.", "method": "GET", "url": "https://httpbin.org/get", "headers": { "Accept": "application/json" }, "queryParameters": { "hostname": "{{components.hostnameInput.value}}", "source": "conductor-step-16" }, "pathParameters": {}, "bodyTemplate": "", "authenticationType": "anonymous" } ], "bindings": [ { "id": "binding_action_to_viewer", "source": "actions.action_httpbin.response", "target": "components.resultsViewer.value", "trigger": "onClick" } ], "variables": {}, "settings": {} } }