MCPcopy Index your code
hub / github.com/API-Security/APIKit / ApiScanner

Method ApiScanner

src/main/java/burp/application/ApiScanner.java:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 private final ArrayList<BiFunction<IHttpRequestResponse, Boolean, ApiType>> apiTypeConstructors = new ArrayList<>();
17
18 public ApiScanner() {
19 this.apiTypeConstructors.add(ApiTypeActuator::newInstance);
20 this.apiTypeConstructors.add(ApiTypeSwagger::newInstance);
21 this.apiTypeConstructors.add(ApiTypeGraphQL::newInstance);
22 this.apiTypeConstructors.add(ApiTypeSoap::newInstance);
23 }
24
25 public ArrayList<ApiType> detect(IHttpRequestResponse baseRequestResponse, boolean isPassive) {
26 ArrayList<ApiType> apiTypes = new ArrayList<>();

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected