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

template/preview api should accept data object as an input, that would enable preview with actual data #2135

Open
rohan3usturge opened this issue Nov 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rohan3usturge
Copy link

Is your feature request related to a problem? Please describe.
would like the template/preview api to show html preview after rendering the template html with actual data.

eg.

from GET /api/templates/3/preview

Order ID : {{.tx.orderData.orderId}}

to

POST /api/templates/3/preview
{ data: { orderData: { orderId: 1 }}}

would return

Order ID : 1

Describe the solution you'd like

  1. We could either amend the current GET api or introduce a new api with POST
@rohan3usturge rohan3usturge added the enhancement New feature or request label Nov 3, 2024
@rohan3usturge
Copy link
Author

@knadh can you check this please ?

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