Recording feature
Imagine something like this:
import {Server} from 'kakapo';
const server = new Server();
server.startRecording();
// Later in your app you do as many requests as you want
$.get('/users')
$.post('/user', {name: 'hector'});
// Later you stop recording
server.stopRecording();
So, basically what's gonna happen is, Kakapo will save all the request that has been dispatched while he was recording, the url, the response... all the important info in order to re-create the request later.
Later Kakapo will store internally all that info and automatically will handle the requests and responses the same way as your real backend did it.
It will be also cool something like
const recordedData = server.getRecordedData();
//Later in the future...
const otherServer = new Server();
otherServer.loadData(recordedData);
This will basically return an object or a serialized string which represents all the events that has been recordered and you can load them in the future in other apps, or other sessions or different servers, etc, etc
@devlucky/kakapo-core Take a look guys, I think it will be also interesting on the Swift side, and not so difficult to implement, of course some api might change depending on the language, etc...