fix: FlowExecutor GET 요청 시 query 파라미터 지원

- GET 요청에서 query 필드를 URL 쿼리스트링으로 전송
- 요청 로그에 query 정보 포함 (에러/성공 모두)
This commit is contained in:
2025-12-08 19:03:58 +09:00
parent 858ce6194d
commit 251bc203d8

View File

@@ -223,12 +223,14 @@ private function executeStep(array $step): array
$endpoint = $this->binder->bind($step['endpoint']);
$headers = $this->binder->bind($step['headers'] ?? []);
$body = $this->binder->bind($step['body'] ?? []);
$query = $this->binder->bind($step['query'] ?? []);
// 3. HTTP 요청 실행
$method = strtoupper($step['method']);
$response = $this->httpClient->request($method, $endpoint, [
'headers' => $headers,
'body' => $body,
'query' => $query,
]);
// 4. HTTP 에러 체크
@@ -240,6 +242,7 @@ private function executeStep(array $step): array
'endpoint' => $endpoint,
'headers' => $headers,
'body' => $body,
'query' => $query,
],
]);
}
@@ -281,6 +284,7 @@ private function executeStep(array $step): array
'endpoint' => $endpoint,
'headers' => $headers,
'body' => $body,
'query' => $query,
],
'response' => [
'status' => $response['status'],