Replies: 1 comment 1 reply
-
There are a lot of ideas in this post. I will try to address them and identify the areas of improvements. On the first part of your post: I don't think we need a new status for recorded responses as this is equivalent to the existing default response (blue flag). Without any rule, the first response being the default one (blue flag), the 3 others are de facto "inactive". They won't be served, ever. The only part I could eventually agree with is the following:
But I also think this sounds like deleting a route with all its responses. There is already a way to delete a response, but I don't think bulk responses deletion is that needed (but I may be mistaken). I would rather work first on route's bulk operations. Anyway, this could be a QoL improvement that is not related to recording in particular. The main question remains: should we modify the recording feature so it records more than one response per route, and if yes, what would be the conditions? A different body is detected? A different query param is detected? Different headers? On the second part: One remark first:
Keep in mind that Mockoon is focusing on REST. So, most developments should target this first. Regarding the hooks thing, I'm not sure I follow completely and I would probably need a concrete example to better understand. But for me, it seems to be the same as fetching the SOAP body properties with the Concerning the last part about "re-recording", I think we would need such feature first (for now we only have recording), before choosing the conditions of a re-recording. But I'm not sure re-recording is that needed for now. At least it's the first time I hear about it. My plan is to extend the Admin API to be able to record and remove routes during runtime. Re-recording would rather be two steps: deleting routes + recording. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
As a user of the application I'd like to have all the responses and requests recorded in proxy mode so that the third party API mocking becomes easier, development time and repetitive tasks become less, long and error prone copy-pasting work can be avoided.
Currently we can achieve this only by manually creating new responses, search for the original request and response pairs in the logs of the application and copy-paste them one by one into the our mock server's endpoint and create a manual rule for each.
Of course these are just my ideas, feel free to comment or correct me on things, this is just how I envisioned the feature in my head at first. I've attached an example picture showing some of the new things in red.
Initial implementation ideas:
Other thoughts, ideas.
This could be another feature on its own building onto the feature above. We can split these of course if you like the ideas.
Please note that I mainly considered XML and SOAP technologies here because that is what I'm working with at the moment.
This could be extended to apply to RESTful web services and even request parameters as well.
Beta Was this translation helpful? Give feedback.
All reactions