Giter Club home page Giter Club logo

personal-task-tracker-rust's Introduction

RESTful API Endpoints

Task Management:

  1. Create Task

    • Endpoint: POST /tasks
    • Description: Adds a new task with details such as title, description, priority, due date, and category.
  2. Get All Tasks

    • Endpoint: GET /tasks
    • Description: Retrieves all tasks, with optional query parameters to filter by category, priority, or due date.
  3. Get Task by ID

    • Endpoint: GET /tasks/{taskId}
    • Description: Fetches the details of a specific task based on its ID.
  4. Update Task

    • Endpoint: PUT /tasks/{taskId}
    • Description: Updates the attributes of an existing task.
  5. Delete Task

    • Endpoint: DELETE /tasks/{taskId}
    • Description: Removes a task from the database.
  6. Batch Update Tasks

    • Endpoint: PATCH /tasks/batch
    • Description: Allows updating multiple tasks at once, such as changing status or category. It is designed to utilize concurrency for efficient processing.

Task Categorization:

  1. Create Category

    • Endpoint: POST /categories
    • Description: Creates a new task category with a name and description.
  2. Get All Categories

    • Endpoint: GET /categories
    • Description: Retrieves a list of all categories along with their descriptions.
  3. Update Category

    • Endpoint: PUT /categories/{categoryId}
    • Description: Updates the name or description of an existing category.
  4. Delete Category

    • Endpoint: DELETE /categories/{categoryId}
    • Description: Deletes a specific category. Requires handling tasks that may be associated with the category.

Database Tables

Task Table

  • Columns:
    • id: Primary key, unique identifier for each task.
    • title: Title of the task.
    • description: Detailed description of the task.
    • priority: Priority level (e.g., High, Medium, Low).
    • due_date: The due date for the task completion.
    • category_id: Foreign key linking to the Category table.
    • status: Current status of the task (e.g., Pending, Completed).

Category Table

  • Columns:
    • id: Primary key, unique identifier for each category.
    • name: Name of the category.
    • description: Description of what the category is about.

Implementation Notes

  • Framework and Libraries: Choose frameworks and libraries that are idiomatic to the language (Go or Rust) for web server setup, routing, handling requests, and interacting with the database.
  • Concurrency: For endpoints like the batch update, leverage the concurrency features of Go (goroutines and channels) or Rust (async/await, threads) to improve performance.
  • Security and Validation: Implement necessary validations for input data to prevent SQL injection and ensure data integrity. Use HTTPS to encrypt data in transit.
  • Testing: Develop unit and integration tests to cover the functionality of your endpoints and database operations.
  • Documentation: Document your API using tools like Swagger or Postman to make it easy for other developers to understand and use your API.

This comprehensive setup offers a solid foundation for learning about web API development, database management, and concurrency in Go or Rust, along with the application of best practices in software development.

personal-task-tracker-rust's People

Contributors

bebaptista avatar ericribeiro avatar

Watchers

 avatar

Forkers

ericribeiro

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.