smocker-dev / smocker

Smocker is a simple and efficient HTTP mock server and proxy
https://smocker.dev
MIT License
1.16k stars 61 forks source link

How to obtain mocks IDs? #295

Open santiago-diaz-repo opened 9 months ago

santiago-diaz-repo commented 9 months ago

I have a scenario where two set of tests are running in parallel in different folders. I am trying to call /reset from each set. However, in order to make it work, I need to lock mocks created from each scenario. To achieve it, the /lock api needs the mock id, but the /mocks creation api does not return this id. How can I obtain it? or how can I tackle this issue?

Thanks.