I need to record sequence of api calls and then stub this sequense again.
For example my scripts going via this proxy to test.com and get response "1" - proxy recording request GET test.com and response "1", then I switching proxy to stub mode with this sequence and when my script call again test.com it getting response from stub.
I not need stub exact url, just queue of responses, if second response will return "2", then queue will be "1","2" and when twice calling test.com I must get 1 and 2 as recorded.
Maybe someone know tools which can do this? I know about charles proxy - but it seems can't do this. Sure it can remote map etc.. but I don't want always manually editing responses.