iridakos / duckrails

Development tool to mock API endpoints quickly and easily (docker image available)
https://github.com/iridakos/duckrails/wiki
MIT License
1.72k stars 108 forks source link

Request HTTP in ResponseBody #48

Open renatovieiradesouza opened 5 years ago

renatovieiradesouza commented 5 years ago

Is possible run request http with javascript into responseBody the of mock? I need to import other lib for decrypt content responseBody.

iridakos commented 5 years ago

Hi @renasti ,

I am not sure I understand the question.

If you are using embedded ruby as body type then you can use the restclient methods to perform any number of external calls to another API.

renatovieiradesouza commented 5 years ago

I am use embedded javascript. It is possible with javascript? I need make a request other extern restapi.