Skip to content

Challenge for the Node Course by Rocketseat. The ultimate objective is to implement an API that lets a user register, update, delete and mark tasks as completed.

Notifications You must be signed in to change notification settings

kunzeleric/node-api-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tasks API - Node

Project developed to represent a task API designed in Node. A challenge in the Ignite Rocketseat course to practice and go further in terms of Node's abilities.

Technology & Libraries

  • Node's HTTP, Crypto and FS modules;
  • CSV lib;

Next Level

  • Make sure ID exists in database before any update\complete\delete operation;
  • Validate if update\post routes don't have an empty body.

Take Aways

  • Handled Node's native modules;
  • Amped up the API's building skills;
  • Learned how to retrieve CSV data.

Installing

Install the project with the following commands:

  npm install
  cd PROJECTS_NAME

API Routes

Return all tasks

  GET /tasks

Return tasks based on search query

  GET /tasks?=search=PARAM

Create a task

  POST /tasks
Data Type Description
title string Mandatory. Tasks title
description string Mandatory. Tasks description

Update a task

  PUT /tasks/:id
Data Type Description
id string Mandatory. Tasks ID goes in the URL
title string Optional. Tasks title
description string Optional. Tasks description
updated_at date Date is automatically filled.

Delete a task

  DELETE /tasks/:id
Data Type Description
id string Mandatory. Tasks ID goes in the URL

Complete a task

  PATCH /tasks/:id/complete
Data Type Description
id string Mandatory. Tasks ID goes in the URL
updated_at date Date is automatically filled.
completed_at date Date is automatically filled.

About

Challenge for the Node Course by Rocketseat. The ultimate objective is to implement an API that lets a user register, update, delete and mark tasks as completed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published