Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Thurner committed Aug 16, 2024
1 parent ad4f2e4 commit 362d6b0
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ private static void analyzeEndpoints() {
// Check for wildcard endpoints if no exact match is found
if (matchingRestCalls.isEmpty() && endpointURI.endsWith("*")) {
for (String uri : restCallMap.keySet()) {
if (uri.startsWith(endpoint.buildComparableEndpointUri().substring(0, endpoint.buildComparableEndpointUri().length() - 1))
&& endpoint.getHttpMethod().toLowerCase().equals(restCallMap.get(uri).get(0).getMethod().toLowerCase())) {
matchingRestCalls.addAll(restCallMap.get(uri));
if (uri.startsWith(endpoint.buildComparableEndpointUri().substring(0, endpoint.buildComparableEndpointUri().length() - 1))) {
System.out.println("Endpoint URI: " + endpoint.buildComparableEndpointUri());
System.out.println("REST Call URI: " + uri);
System.out.println("REST Call List length: " + restCallMap.get(uri).size());
if (endpoint.getHttpMethod().toLowerCase().equals(restCallMap.get(uri).get(0).getMethod().toLowerCase())) {
matchingRestCalls.addAll(restCallMap.get(uri));
}
}
}
}
Expand Down

0 comments on commit 362d6b0

Please sign in to comment.