restful-node-js

2013-03-29T13:07:12.000Z
Tags: node learning javascript restful api

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
Last Updated: 5/21/2019, 12:58:44 PM