RESTful api
Manage id as optional parameter
Merge pull request #238 from Masadow/rest