Replies: 2 comments 5 replies
-
To solve a similar issue i used an external webdis which is a http redis api to store data. |
Beta Was this translation helpful? Give feedback.
-
Thanks for starting the discussion! Happing to know you're loving Microcks! @apoorva256: it could be nice to get more details on how you're doing things at the |
Beta Was this translation helpful? Give feedback.
-
We're using Microcks and loving it! However, there's one missing feature we had previously in a different mocking product that I'm curious if Microcks has that I've missed or has on its roadmap which is to allow for stateful mock responses.
The scenario is suppose I have an API that creates resources via a POST call. When emitting a new resource we could easily apply the Faker-based generated data to return the response; however, without state, subsequent GET calls for that same "created" resource is lost - if relying on Faker again on the GET, one would receive a vastly different response. When testing APIs in isolation, the predetermined responses work perfectly, but in end-to-end scenarios where one API's response must feed into the next's call, being able to hold state would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions