directory = input("Enter the directory path to scan for Java files: ")
main(directory)
###This script will walk through the given directory, read Java files, and search for endpoint annotations typical in Spring Boot (@RequestMapping) and JAX-RS (@Path). It prints out the paths, methods, names, and parameters of detected endpoints.
Keep in mind that this is a simple example and may need to be expanded for more complex scenarios, such as handling additional annotations or more intricate method signatures.