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

Support templates and capture variables #465

Open
divdavem opened this issue Sep 2, 2022 · 0 comments
Open

Support templates and capture variables #465

divdavem opened this issue Sep 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@divdavem
Copy link
Member

divdavem commented Sep 2, 2022

It would be good to have support for a template engine, to be able to easily transform a mock into a template, which could include some dynamic variables.
It should be possible to set those variables programmatically from the hook method of the configuration file.
It would also be nice to have an easy syntax to capture with pattern matching some parts of the request (URL, headers, request body) and assign those parts to some variables that can directly be used in the template of the response.

@divdavem divdavem added the enhancement New feature or request label Sep 2, 2022
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
None yet
Development

No branches or pull requests

1 participant