Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/utsavbajracharya/nodejs-task-manager-app
- Owner: UtsavBajracharya
- Created: 2024-11-06T19:47:34.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-11-08T23:48:28.000Z (3 months ago)
- Last Synced: 2024-11-25T01:15:38.438Z (2 months ago)
- Topics: crud-api, expressjs, nodejs, postman
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 |