Find the execution flow of the actual code when an API is called

meorla 1 Reputation point
2022-08-18T02:54:29.467+00:00

Is it possible to call an api such as "localhost/calculate" using PostMan and find out which classes or methods are called in order?

It would be like (GetCalculateResult(), Calculate.cs) -> (MathLogic(), Math.cs) and etc?

I want to know the way so it will be easier when I'm trying to understand how others codes work.

Thank you in advance!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,422 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,212 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 57,241 Reputation points
    2022-08-18T02:58:32.057+00:00

    If you can attach the debugger to the web site, then you can follow the logic. If you have the source code you could follow the logic. Otherwise no.


  2. Bruce (SqlWork.com) 57,241 Reputation points
    2022-08-18T15:50:03.017+00:00
    0 comments No comments