Hacker News new | ask | show | jobs
by heterogenic 4425 days 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.
1 comments

I think you might be looking for this: https://news.ycombinator.com/item?id=7681973
Not it, but it does about the same thing. Thanks!