Skip to content

Commit 2e8cb50

Browse files
committed
Improved usability
Improved usability of new callApiJSON method by defaulting to HttpRequest.GET_METHOD Signed-off-by: daivdwe <[email protected]>
1 parent 5703a5b commit 2e8cb50

File tree

1 file changed

+1
-2
lines changed
  • subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/core

1 file changed

+1
-2
lines changed

subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/core/ClientApi.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,12 @@ public byte[] callApiOther(
476476
}
477477

478478
public byte[] callApiJSON(
479-
String requestMethod,
480479
String component,
481480
String type,
482481
String method,
483482
Map<String, String> params)
484483
throws ClientApiException {
485-
return getBytes(requestMethod, "JSON", component, type, method, params);
484+
return getBytes(HttpRequest.GET_METHOD, "JSON", component, type, method, params);
486485
}
487486

488487
private byte[] getBytes(

0 commit comments

Comments
 (0)