Here is the scenario: I'm a QA engineer and our product is web-based. We have some automation scripts to test websites and they will interact with the backend APIs. We want when some actions in the website invoke some backend APIs, the real API are NOT called but it goes into mock server and return the faked data. I know currently there is no mock in developers' code. I want to configure a mock server which will intercept the requests and actually return some predefined data.
Is there any suggestions or any mature open source mock server for this scenario and where should the mock server be configured?