Simple Rest API with node js http server
Doc:
- npm run start -> running basic http server with 200 response code. example request : curl -i -X GET http://localhost:5000/
- npm run server -> handle http request method GET,POST,PUT,DELETE. example request : curl -i -X GET http://localhost:5000/, curl -i -X PUT http://localhost:5000/, curl -i -X DELETE http://localhost:5000/, curl -i -X POST -H "Content-Type: application/json" -d "{"name":"isron","age":"21"}" http://localhost:5000
- npm run route-server -> http server according to url path example request : curl -i -X GET http://localhost:5000/, curl -i -X GET http://localhost:5000/about curl -i -X POST -H "Content-Type: application/json" -d "{"name":"isron","age":"21"}" http://localhost:5000/about
- npm run route-server -> http server by handling response