Giter Club home page Giter Club logo

todo_server's Introduction

To-Do Server API Documentation

Welcome to the To-Do Server API documentation. This document provides details about all available endpoints, their functionality, HTTP methods, and request body structure.

Base URL :

The base URL for all API endpoints is https://todo-server-wine.vercel.app/

Endpoints :

1. Home Route :

  • Endpoint : /
  • Method : GET
  • Description: Displays a welcome message for the To-Do server.

2. User Registration :

  • Endpoint : /user/register

  • Method : POST

  • Description : Registers a new user.

  • Request Body Structure:

      {
          "name": "string",
          "email": "string",
          "username": "string",
          "password": "string"
      }
    

3. User Login :

  • Endpoint : /user/login

  • Method : POST

  • Description : Logs in an existing user.

  • Request Body Structure :

      {
          "loginId": "string",
          "password": "string"
      }
    

4. User Logout :

  • Endpoint : /user/logout
  • Method : GET
  • Description : Logs out the current user.

5. Logout From All Devices :

  • Endpoint : /user/logout_all
  • Method : GET
  • Description : Logs out the current user from all devices.

6. Get Todos :

  • Endpoint : /todo/my-todos
  • Method : GET
  • Description : Retrieves all todos of the logged-in user.
  • Query Parameters : page (Page No.), max (Data Per Page)

6. Get Running Todos :

  • Endpoint : /todo/my-running-todos
  • Method : GET
  • Description : Retrieves all running todos of the logged-in user.
  • Query Parameters : page (Page No.), max (Data Per Page)

6. Get Completed Todos :

  • Endpoint : /todo/my-completed-todos
  • Method : GET
  • Description : Retrieves all completed todos of the logged-in user.
  • Query Parameters : page (Page No.), max (Data Per Page)

7. Add Todo :

  • Endpoint : /todo/add

  • Method : POST

  • Description : Adds a new todo for the logged-in user.

  • Request Body Structure :

      {
          "title": "string"
      }
    

8. Delete Todo :

  • Endpoint : /todo/delete
  • Method : DELETE
  • Description : Deletes a todo by todoID of the logged-in user.
  • Query Parameters : id (todo ID)

8. Delete All Completed Todos :

  • Endpoint : /todo/delete-all-completed
  • Method : DELETE
  • Description : Deletes all completed todos of the logged-in user.
  • Query Parameters : id (todo ID)

9. Edit Todo :

  • Endpoint : /todo/edit

  • Method : PUT

  • Description: Edits a todo by ID of the logged-in user.

  • Query Parameters : id (todo ID)

  • Request Body Structure :

      {
          "title": "string"
      }
    

10. Complete Todo :

  • Endpoint : /todo/complete
  • Method : PUT
  • Description : Marks a todo as completed by ID of the logged-in user.
  • Query Parameters : id (todo ID)

Feel free to explore these endpoints and start building your To-Do application! ๐Ÿ“๐Ÿš€

Please note that this README is a template, and you should customize it further based on your specific project requirements. If you have any questions or need further assistance, feel free to reach out! ๐Ÿ˜Š

todo_server's People

Contributors

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