ensemble icon indicating copy to clipboard operation
ensemble copied to clipboard

add support for automatically managing cookies when calling APIs

Open TheNoumanDev opened this issue 1 year ago • 1 comments

Add a manageCookies option to each API. default is false. Only applicable to native apps. When true, automatically store and set cookies for the domain. Use the cookie-jar package. Must not impact the web. also add response.cookies returns a map of all cookies for that domain.

CC: @kmahmood74

TheNoumanDev avatar Sep 26 '24 17:09 TheNoumanDev

Example EDL:

getProducts:
    url: https://postman-echo.com/post
    method: POST
    manageCookies: true  # default is false
    onResponse: |
      console.log(response.body);
      console.log(response.headers['set-cookie']); // just to confirm
      console.log(response.cookies); 

TheNoumanDev avatar Sep 26 '24 17:09 TheNoumanDev