mocka
mocka copied to clipboard
Add Record Mode
trafficstars
Is your feature request related to a problem? Please describe. It would be useful to have a record mode in the app. This feature has been asked at the SwiftHeroes 2021 event.
Describe the solution you'd like
We should add a new record mode, currently activable only by using Commands (Server section). Inside this new section there will be a new Record Mode button (CMD + Option + R - any suggestion is welcome).
This new feature will allow the server to automatically start the record mode witch consist of:
- When the record mode is started, the app will ask for the real address of the server (this is because Mocka will act as a man in the middle by really calling the real BE)
- Listen on the given Address and Port (like normal mode)
- When a request is received, instead of giving back the response the server will send the request to the real BE
- When the real BE gives to the server a response, it will be saved as a request (how to choose a name will be discussed while implementing this feature)
- Then the server sends the response back as a normal mocked response
Describe alternatives you've considered None.
Additional context None.