3 ms·
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 https://j
by elnik 9y ago
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 https://jsonbin.io/b/new
will be cool!
- Kiro 9y agoI thought that's how it works? https://jsonbin.io/api-reference https://jsonbin.io/api-reference
- elnik 9y ago$ cat test.json {} $ curl -X POST -H "Content-Type: application/json" -d @test.json https://jsonbin.io/b/new 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 https://jsonbin.io/b/new {"success":true,"data":"{}","id":"..."}
- Kiro 9y agoOh, you're right. My bad. Maybe they want to leave room for meta data in the future or something.