Skip to content

Instantly share code, notes, and snippets.

@thamaraiselvam
Last active January 9, 2020 04:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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