Hacker News new | past | comments | ask | show | jobs | submit login

On another note,

Why the 'snippet' additional step when creating new fiddles?

Being able to do:

curl -X POST -d @test.json https://jsonbin.io/b/new

will be cool!




I thought that's how it works?

https://jsonbin.io/api-reference


$ cat test.json

{}

$ curl -X POST -H "Content-Type: application/json" -d @test.json https://jsonbin.io/b/new

{"success":false,"message":"Snippet parameter is missing"}

$ echo '{"snippet": "{}"}' > test.json

$ curl -X POST -H "Content-Type: application/json" -d @test.json https://jsonbin.io/b/new

{"success":true,"data":"{}","id":"..."}


Oh, you're right. My bad. Maybe they want to leave room for meta data in the future or something.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: