If you think of building a mockup service which is configurable and where valid routes are specified in a configuration file.
The asp .net core web app should be able then to dynamically determine whether the request is pointing to a valid route, and then, optionally log the request data and return some constant JSON response.
For the mockup to work, we should be able to accept any route
Here we can see an example of doing it:
https://stackoverflow.com/a/56587599
Tags
ASP .NET core