Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tiempie
· 1y ago · 0 comments
Nice. So sending {"username": "tom"} to /api/test/users will create > test.json with {"users": {"username": "tom"}} ?
Comments
[–]
tiemster
1y ago
Yes! And you can use "append" mode for use cases like these also. Then the value will be added as a list object. So:
{users: [{"username": "tom"}, {"username": "tim"}]}