GithubHelp home page GithubHelp logo

osumare_assignment's Introduction

Task Management RESTful API

This project is a simple RESTful API built with Express.js for managing tasks. It allows users to perform CRUD (Create, Read, Update, Delete) operations on tasks stored in memory.

Getting Started

To get started with the project, follow these steps:

  1. Clone the repository:

  2. Navigate to the project directory:

  3. Install dependencies npm i:

  4. Start the server:

Documentation

link : https://documenter.getpostman.com/view/31100248/2sA2xh2t23

The server will start running on http://localhost:5000 by default.

Endpoints

The API exposes the following endpoints:

  • GET /task/fetch_task: Retrieve a list of all tasks.
  • GET /task/fetch_task/:id: Retrieve a specific task by ID.
  • POST /task/create_task: Create a new task.
  • PUT /task/update_task/:id: Update an existing task by ID.
  • DELETE /task/delete_task/:id: Delete a task by ID.

Request and Response Examples

GET /task/fetch_task

Request:

GET /task/fetch_task

{
  "taskList": [
    {
      "id": 1,
      "title": "Example Task 1",
      "description": "This is an example task",
      "date": "2024-03-10"
    },
    {
      "id": 2,
      "title": "Example Task 2",
      "description": "This is another example task",
      "date": "2024-03-11"
    }
  ]
}

POST /task/create_task
Content-Type: application/json

{
  "title": "New Task",
  "description": "This is a new task",
  "date": "2024-03-12"
}

{
  "msg": "task inserted",
  "task": {
    "id": 3,
    "title": "New Task",
    "description": "This is a new task",
    "date": "2024-03-12"
  }
}

osumare_assignment's People

Contributors

rbcoder1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.