Class ApiCallAdapter
java.lang.Object
ai.specformula.spring.instruction.ApiCallAdapter
- All Implemented Interfaces:
ApiCallInstruction
ApiCallInstruction 的轉換層實作。
將 List<Map<String, String>> 轉為 Cucumber DataTable 後委派給 ApiCall。
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ApiCallAdapter
-
-
Method Details
-
invokeWithActor
public void invokeWithActor(String summary, String token, List<Map<String, String>> dataTable) throws ExceptionDescription copied from interface:ApiCallInstruction以指定身份執行 API 呼叫。- Specified by:
invokeWithActorin interfaceApiCallInstruction- Parameters:
summary- API operation summarytoken- 身份驗證 tokendataTable- 請求參數(欄位名稱 → 值)- Throws:
Exception
-
invokeWithoutActor
Description copied from interface:ApiCallInstruction以無身份執行 API 呼叫。- Specified by:
invokeWithoutActorin interfaceApiCallInstruction- Parameters:
summary- API operation summarydataTable- 請求參數(欄位名稱 → 值)- Throws:
Exception
-