GithubHelp home page GithubHelp logo

taskmanager's Introduction

API Documentation

Overview-->
    Welcome to the API documentation for TaskManager. This API provides functionality to manage tasks. It includes endpoints for user authentication, task creation, retrieval, update, and deletion.

    Authentication -->
        To access protected endpoints, you need to authenticate using Token-based authentication. Include the token in the Authorization header of your HTTP request.

Endpoints -->

  1. Login -->

    Endpoint: api/login/ Method: POST Authentication: Not required Request Body: { "username": "your_username", "password": "your_password" }

    Response: Status: 200 OK Body: { "token": "YOUR_AUTH_TOKEN" }

  2. Add Task -->

    Endpoint: api/addTask/ Method: POST Authentication: Required Request Body: { "title": "Your Task Title", "description": "Your Task Description" }

    Response: Status: 201 Created Body: Details of the created task

  3. Get Task -->

    Endpoint: api/getTask/int:task_id/ Method: GET Authentication: Required Response: Status: 200 OK Body: Details of the requested task

  4. Get All Tasks -->

    Endpoint: api/allTasks/ Method: GET Authentication: Required Response: Status: 200 OK Body: List of all tasks

  5. Delete Task -->

    Endpoint: api/deleteTask/int:task_id/ Method: GET Authentication: Required Response: Status: 204 No Content

  6. Update Task -->

    Endpoint: api/updateTask/int:task_id/ Method: POST Authentication: Required Request Body: { "title": "Updated Task Title", "description": "Updated Task Description" }

    Response: Status: 200 OK Body: Details of the updated task

Error Handling -->

400 Bad Request:
    Invalid request format or missing required fields.
401 Unauthorized:
    Token missing or invalid.
403 Forbidden:
    User doesn't have permission to access the resource.
404 Not Found:
    The requested resource (task) doesn't exist.
500 Internal Server Error:
    An unexpected error occurred on the server.

taskmanager's People

Contributors

darkpiece07 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.