duckrails icon indicating copy to clipboard operation
duckrails copied to clipboard

Request HTTP in ResponseBody

Open renatovieiradesouza opened this issue 5 years ago • 2 comments

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

renatovieiradesouza avatar Jul 25 '19 17:07 renatovieiradesouza

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.

iridakos avatar Jul 29 '19 09:07 iridakos

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

renatovieiradesouza avatar Jul 29 '19 14:07 renatovieiradesouza