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

Cannot append more than 1 value #22

Open
maryigoshyna opened this issue Oct 31, 2018 · 0 comments
Open

Cannot append more than 1 value #22

maryigoshyna opened this issue Oct 31, 2018 · 0 comments

Comments

@maryigoshyna
Copy link

Hello again!
When I execute POST request I want to append values to persist.entity json file. I can append one field during request, but Unfortunately I cannot append more. Tell me please is it possible to do or how should I do in such situation?
Next example which works (append 1 field):
"persist": {
"entity": "/adverts/live-1.json",
"actions": {
"append":
"{"data": {\r\n"comments_allowed_for": {{ request.body.data%5Bcomments_allowed_for%5D.(?P\d+) }} }}"
}
}
Next example which doesn't work (append 2 field):
"persist": {
"entity": "/adverts/{{ request.query.storageId }}-{{ storage.GetValue(advert-{{ request.query.storageId }}-{{ request.query.id }}) }}.json",
"actions": {
"append":
"{"data": {\r\n"comments_allowed_for": {{ request.body.data%5Bcomments_allowed_for%5D.(?P\d+) }},\r\n"price-user": {{ request.body.data%5Bprice%5D.(?P\d+) }}\r\n}}"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant