Skip to content

Instantly share code, notes, and snippets.

@thamaraiselvam
Last active January 9, 2020 04:39
Show Gist options
  • Save thamaraiselvam/bff159f6e90ac571ea19223a933f0ff8 to your computer and use it in GitHub Desktop.
Save thamaraiselvam/bff159f6e90ac571ea19223a933f0ff8 to your computer and use it in GitHub Desktop.
NodeJs Dev Dojo
Task 1: Problem Statement:
Run a nodejs server and create GET, POST, DELETE, PUT endpoints.
AC:
1. Should run on 3000 port
2. Should accept GET Request /hello with name param and it should return output `hello <name>`. Example: /hello?name=pasu
3. Should accept POST Request /new with name param (body) and it should return output `hello <name> - you have got new request`
3. Should accept PUT Request /update with name param (body) and it should return output `hello <name> - you have got have got new update request`
3. Should accept DELETE Request /delete with name param (body) and it should return output `hello <name> you have got new delete request`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment