Skip to content

Instantly share code, notes, and snippets.

@thamaraiselvam
Last active Jan 9, 2020
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