Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

To execute, please open two instances of the terminal

Running the server

In one of the terminal run the command
node server.js

In another terminal, run any of the following

GET method

curl --header 'content-type: application/json' localhost:3000/hello

curl --header localhost:3000/hello

POST method

curl --header 'content-type: application/json' localhost:3000/hello --data '{"foo":"bar"}'