Skip to content

AbhayXcoderx123/Test-Emsec-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CURLS for the APIs

  1. API for POST curl --location --request POST 'localhost:3000/tasks'
    --header 'Content-Type: application/json'
    --data-raw '{ "title":"stage2", "is_completed":"yes", "end_date": "2023-02-01 12:06:34" }'

  2. API got getting a single id curl --location --request GET 'localhost:3000/tasks/12'
    --data-raw ''

3.API got getting a all Id curl --location --request GET 'localhost:3000/tasks'

  1. API for updating a entry curl --location --request PATCH 'localhost:3000/shirt/14'
    --header 'Content-Type: application/json'
    --data-raw '{ "task":"stag2", "is_completed":"yes", "end_date":"2023-02-12 11:02:49" }'

  2. API for deleting a entry curl --location --request DELETE 'localhost:3000/tasks/11'
    --data-raw ''

To start the the program :-

  1. Go to the task definition directory
  2. And run npm install
  3. And run npm start
  4. install the required libraries - npm i express npm i --save sequelize npm i --save body-parser WhatsApp Image 2023-02-12 at 3 49 15 PM WhatsApp Image 2023-02-12 at 3 48 46 PM WhatsApp Image 2023-02-12 at 3 34 31 PM WhatsApp Image 2023-02-12 at 3 34 09 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published