Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for automatically managing cookies when calling APIs #1649

Closed
TheNoumanDev opened this issue Sep 26, 2024 · 1 comment · Fixed by #1650
Closed

add support for automatically managing cookies when calling APIs #1649

TheNoumanDev opened this issue Sep 26, 2024 · 1 comment · Fixed by #1650
Assignees
Labels
enhancement New feature or request

Comments

@TheNoumanDev
Copy link
Member

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 TheNoumanDev self-assigned this Sep 26, 2024
@TheNoumanDev TheNoumanDev added the enhancement New feature or request label Sep 26, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Ensemble Sep 26, 2024
@TheNoumanDev TheNoumanDev moved this from Backlog to In Progress in Ensemble Sep 26, 2024
@TheNoumanDev TheNoumanDev linked a pull request Sep 26, 2024 that will close this issue
@TheNoumanDev
Copy link
Member Author

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); 

@kmahmood74 kmahmood74 changed the title add support for cookie in API body add support for automatically managing cookies when calling APIs Sep 26, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Released in Ensemble Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

1 participant