Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Generalizing JSX: Delivering on the Dream of Curried Named Parameters. Parent comment
api = new Api('http://my.cool.api')
api.get('/it')
api.post('/it')
// connect = rootUrl => method => endpoint
api = connect('http://my.cool.api')
get = api('GET')
post = api('POST')
get('/it')
post('/it')
There are no comments on this comment yet.
api = new Api('http://my.cool.api')
api.get('/it')
api.post('/it')
// connect = rootUrl => method => endpoint
api = connect('http://my.cool.api')
get = api('GET')
post = api('POST')
get('/it')
post('/it')