restful-node-js
2013-03-29T13:07:12.000Z
Been missing around with node.js and implementing a simple restful web service. First started with implementing GET, then POST, DELETE, and PUT.
Then I used some curl commands to test it out. Worked out pretty good. Used the following commands to test:
- GET
curl http://127.0.0.1:9000
- POST
curl -d ''stretch'' http://127.0.0.1:9000
- PUT
curl -X PUT ''stretch more'' http://127.0.0.1:9000/0
- DELETE
curl -X DELETE http://127.0.0.1:9000/0