Y
Hacker News
new
|
ask
|
show
|
jobs
by
tiempie
252 days ago
Nice. So sending {"username": "tom"} to /api/test/users will create > test.json with {"users": {"username": "tom"}} ?
1 comments
tiemster
252 days 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"}]}
link