Install the node packages with the following command
npm install
Run the project with the following command
npm run start
Use the following curl command to insert employee
curl --location --request POST 'http://localhost:3000/employees' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Rashintha",
"email": "rashintha@rashintha.com",
"profile_picture": "dsdsdsdsdsd"
}'
Use the following curl command to update employee
curl --location --request PUT 'http://localhost:3000/employees/1' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Rashintha Madunet",
"email": "mail@rashintha.com",
"profile_picture": "dsdsdsdsdsd"
}'
Use the following curl command to delete employee
curl --location --request DELETE 'http://localhost:3000/employees/1'
Use the following curl command to get employees
curl --location --request GET 'http://localhost:3000/employees?length=10&offset=0'