restlink
v0.2.0-alpha.1
Published
A powerful REST server for node.js + browser with batteries (optional middlewares including sessions, security, local, http and socket.io interfaces...) WORK IN PROGRESS
Downloads
5
Readme
restlink.js
NOT READY !!! PLEASE WAIT A BIT, DEV ACTIVELY IN PROGRESS !
A powerful REST server for node.js + browser with batteries (local, http and socket.io interfaces, optional middleware including sessions, security...) WORK IN PROGRESS Strong points :
- works in browser
- transport independent
- allows full HTTP capabilities (i.e. uncommon verb like BREW or anything)
- if allowed by transport, provides integrated push support (with special GET = subscribe)
- ...
License : public domain (http://unlicense.org/)
.defer .then .spread .resolve .reject expect(false).to.be.ok; BB sync
TODO
- session and request timeout
- OPTIONS
- connect adapter
- security
- black / whitelist
- filter returned errors
- leaks analysis
- logs input, output, exceptions...
- perf tests
- remove chai.should usage for IE
TODO one day
- ECMA 6 yield
- replace startable_objects with mixins/startable
- error handling : exceptions ? promises ? -->Should always handle exceptions anyway
See also : http://www.linkedin.com/groups/Which-is-best-framework-building-2906459.S.5828366732095406080 https://github.com/mcavage/node-restify https://github.com/wprl/baucis
REST routes :
BB OPTIONS (create - internal) BB POST /order create POST /order/123 create/update
- POST /orders create_multiple ? BB DELETE /order/123 delete
- DELETE /orders delete all
- DELETE /order delete all (variant) PUT /order/123 create/update GET /orders read all
- GET /order read all GET /order/123 read GET /order?foo=bar find
TOREVIEW
- delete of a non existing resource ? OK ?
- singular / plural routes ?
- ruby REST routes ?
- how to delete attributes in REST ?