Do Recording

Do Recording

It is the time to click “Start” to button to launch the recorder now. But before we do that, we must make sure to map the proxy port(like 8089 in this example) to the host, or we can not access the proxy url.

  1. map the proxy port from container to host (skip this part if you already do that when you start the container).Stop the restbird container and start a new one by mapping the proxy port:
sudo docker run    -ti    -p 8080:8080 -p 8089:8089   -v /var/my-first-project:/data/restbird    restbird/rest

Best Practice

the best practice is when we start the container, we map a set of ports at that time, like: sudo docker run -ti -p 8080:8080 -p 9000-9100:9000-9100 -v /var/my-first-project:/data/restbird restbird/rest

  1. click “start” button and access the proxy url

Recorder setting

  1. do recording through the proxy url

Recorder setting

  1. check the recorded http requests by click the “refresh” button. Click the recorded Api will see the detail of the http request and response.

Recorder setting

  1. click a recorded Api, you will the detail information about it.

reverse proxy

Copy to Rest Project/Mock Server

The recorded Apis could be copied to a Rest project case to replay it or a Mock Server case to set up the initial mock server apis.

For more detail infomation, please check Doc.