We have a legacy code solution in C#. We have to change the code so that it fetches internal data via APIs and not via DB calls.
E.g. if the current code GETS Payment object from DB, we have to replace the logic so that the code calls the GET PAYMENT API instead.
Since there are 100s of code files and multiple DB hits in a single file, doing this manually is not feasible.
I was thinking of building an AI-based tool that would take my code file as input and point me out where I would need to replace the existing code and suggest what API to call at that place.
I have never worked on AI and it would be great if anyone suggests which algorithm to refer for my tool and also how should I proceed with solving the above problem.