ConditionMatcher 처리 변경

This commit is contained in:
현성필
2023-08-23 12:41:42 +09:00
parent b5905bd4d0
commit 613e64de6d
8 changed files with 63 additions and 17 deletions
@@ -58,11 +58,8 @@
<input type="hidden" th:field="*{responses[__${status.index}__].defaultResponse}" />
<ul class="response_conditions">
<li th:each="condition, status: *{responses[__${status.index}__].conditions}">
<select>
<option value="query" th:selected="${condition.type == 'query'}">Query</option>
<option value="header" th:selected="${condition.type == 'header'}">Header</option>
<option value="path" th:selected="${condition.type == 'path'}">Path</option>
<option value="jsonpath" th:selected="${condition.type == 'jsonpath'}">JSON Path</option>
<select class="form-select" th:with="matchers1=${@ConditionMatcherService.getMatchersList()}">
<option th:each="item : ${matchers1}" th:value="${item.getType()}" th:text="${item.getDisplayName()}" th:selected="${condition.type == item.getType()}"></option>
</select>
<input type="text" name="key" th:value="${condition.key}"/>
<input type="text" name="value" th:value="${condition.value}"/>
@@ -164,11 +161,8 @@
<tbody>
<tr>
<td>
<select class="form-select">
<option value="query">Query</option>
<option value="header">Header</option>
<option value="path">Path Variable</option>
<option value="jsonpath">JSON Path</option>
<select class="form-select" th:with="matchers=${@ConditionMatcherService.getMatchersList()}">
<option th:each="item : ${matchers}" th:value="${item.getType()}" th:text="${item.getDisplayName()}"></option>
</select>
</td>
<td>