Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/utsavbajracharya/nodejs-task-manager-app

CRUD operation using nodejs and express and testing endpoint using Postman
https://github.com/utsavbajracharya/nodejs-task-manager-app

crud-api expressjs nodejs postman

Last synced: 2 days ago
JSON representation

CRUD operation using nodejs and express and testing endpoint using Postman

Awesome Lists containing this project

README

        

# Task-Manager-App

A simple API for managing tasks with in-memory storage using Node.js and Express.

### Initialize the Project:

- cd task-manager-app
- npm init -y

### Install dependencies:

- npm install express uuid

### Start the Server:

- node index.js

## Endpoints

- Open POSTMAN and create a new request.
- Set the request method to following.

### Create a Task
- **URL:** `POST /tasks` http://localhost:3000/tasks
- **Body:**

```json
{
"title": "Task title",
"description": "Task description"
}

### Retrieve All Tasks
- **URL:** `GET /tasks` http://localhost:3000/tasks

### Update a Specific Task
- **URL:** `PUT /tasks/:id` http://localhost:3000/tasks/unique-task-id-1

### Delete a Specific Task
- **URL:** `DELETE /tasks/:id` http://localhost:3000/tasks/unique-task-id-1

## Summary of API Endpoints in Postman

| Method | Endpoint | Purpose |
|--------|--------------|---------------------------------|
| POST | /tasks | Add a new task |
| GET | /tasks | Retrieve all tasks |
| PUT | /tasks/:id | Update a specific task by ID |
| DELETE | /tasks/:id | Delete a specific task by ID |