Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Record Mode #89

Open
FabrizioBrancati opened this issue Apr 30, 2021 · 0 comments · May be fixed by #105
Open

Add Record Mode #89

FabrizioBrancati opened this issue Apr 30, 2021 · 0 comments · May be fixed by #105
Assignees
Labels
feature Feature pull request
Milestone

Comments

@FabrizioBrancati
Copy link
Contributor

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:

  1. 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)
  2. Listen on the given Address and Port (like normal mode)
  3. When a request is received, instead of giving back the response the server will send the request to the real BE
  4. 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)
  5. Then the server sends the response back as a normal mocked response

Describe alternatives you've considered
None.

Additional context
None.

@FabrizioBrancati FabrizioBrancati added the feature Feature pull request label Apr 30, 2021
@FabrizioBrancati FabrizioBrancati added this to the Mocka 0.2.0 milestone Apr 30, 2021
@davix93 davix93 linked a pull request Aug 5, 2021 that will close this issue
11 tasks
@davix93 davix93 linked a pull request Aug 5, 2021 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants