6 ms·
Help me out here HN... I remember somewhere seeing an API format where you passed up the empty JSON object which you wanted filled and returned. Something lik
by heterogenic 12y ago
Help me out here HN... I remember somewhere seeing an API format where you passed up the empty JSON object which you wanted filled and returned.
Something like:
(request)
{username:"",address:"",credits:""}
(response)
{username:"Manilow, Barry", address:"Hollywood Bowl", credits: 99}
Clearly not optimal, but it worked pretty well and was very intuitive.
- junto 12y agoI think you might be looking for this: https://news.ycombinator.com/item?id=7681973 https://news.ycombinator.com/item?id=7681973
- heterogenic 12y agoNot it, but it does about the same thing. Thanks!