diff --git a/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java b/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java index c3a591ae0fec..998753c1d8aa 100644 --- a/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java +++ b/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java @@ -55,6 +55,15 @@ public static void main(String[] args) { parseServerEndpoints(filesToParse); } + /** + * Parses server endpoints from the given file paths. + * + * This method reads Java files from the specified file paths, extracts endpoint + * information annotated with HTTP method annotations, and writes the parsed + * endpoint information to a JSON file. It also logs any files that failed to parse. + * + * @param filePaths an array of file paths to parse for endpoint information + */ private static void parseServerEndpoints(String[] filePaths) { List endpointClasses = new ArrayList<>(); diff --git a/supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/AnalysisOfEndpointConnectionsClient.ts b/supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/AnalysisOfEndpointConnectionsClient.ts index d911315df9e6..1926bc95c192 100644 --- a/supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/AnalysisOfEndpointConnectionsClient.ts +++ b/supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/AnalysisOfEndpointConnectionsClient.ts @@ -73,7 +73,6 @@ Array.from(astMap.keys()).forEach((filePath) => { }); try { - console.log('Working directory:', process.cwd()); writeFileSync('supporting_scripts/analysis-of-endpoint-connections/restCalls.json', JSON.stringify(Postprocessor.filesWithRestCalls, null, 2)); } catch (error) { console.error('Failed to write REST calls to file:', error);