Recording external API using mockoon

357 views Asked by At

I have just started using Mockoon tool and I am finding a way to record an API which is already created and running in a port like for example I have a API like http://10.12.150.25:8080/welcome which is already creating and I want to capture request and response going to that API using a Mockoon (I think for this we can import our swagger file and capture but I want it as live recording). as of my understating creating new environment in Mockoon means creating a new API.

Queries:
Is it possible to do my use cases in Mockoon? If yes how can I achieve that?

2

There are 2 answers

0
255kb - Mockoon On

[Update 2023-11-20] Since version 3.1.0 a recording mode has been added.


There is no "automatic" recording option in Mockoon. But you can enable the proxy and from the "Logs" tab add the endpoints manually.

  1. Enable the proxy:

enter image description here

  1. Manually mock an request/response:

enter image description here

1
AsGoodAsItGets On

According to this github issue, unfortunately the author is not interested in implementing this:

https://github.com/mockoon/mockoon/issues/21

I was looking to do the same, but now I'm evaluating polly.js