수정가능 범위 하이라이트, IMPORT 추가, 스크립트 선택 필드Select2 로 변경

This commit is contained in:
yunjy
2022-08-19 16:02:36 +09:00
parent 086e878b60
commit b302bb75fa
5 changed files with 94 additions and 29 deletions
@@ -4,6 +4,7 @@ import java.util.Optional;
import javax.validation.Valid;
import com.eactive.httpmockserver.script.ScriptInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpMethod;
@@ -21,6 +22,9 @@ public class ApiManageController {
@Autowired
private ApiService apiService;
@Autowired
private ScriptInfoService scriptInfoService;
@Autowired
private ApiServiceKeyService apiKeyService;
@@ -47,6 +51,8 @@ public class ApiManageController {
model.addAttribute("apiInfo", apiInfo);
}
model.addAttribute("scriptInfos", scriptInfoService.findAllScriptInfos());
return "page/add-edit-api";
}
@@ -2,5 +2,12 @@ package com.eactive.httpmockserver.script;
public interface Script {
/**
* Script Process Function
* @param requestMessage 수신 받은 요청 메시지
* @param responseMessage 정의된 응답 메시지
* @return 스크립트 수행 후 응답 할 메시지
* @throws Exception
*/
public String postProcess(String requestMessage, String responseMessage) throws Exception;
}