REST API using the MongoDB PHP driver and Laravel
A simple REST API for a ToDo list that responds to the following requests
GET api/todos - Fetches all the documents from the database.
GET api/todos/:id - Fetches the document with id :id.
POST api/todos - Creates a new todo document.
PUT api/todos/:id - Updates the document with id :id
DELETE api/todos/:id - Deletes the document with id :id
POST and PUT requests expects a parameter message (the todo text)
and an optional parameter done (true/false).