PR-Pilot-AI / pr-pilot

An AI agent for your development workflow that can search and manipulate the code base, browse the internet and interact with Github issues and pull requests
https://www.pr-pilot.ai
GNU General Public License v3.0
148 stars 15 forks source link

🗑️ Add Delete Task Endpoint #203

Closed pr-pilot-ai[bot] closed 2 months ago

pr-pilot-ai[bot] commented 2 months ago

I have successfully created an endpoint for deleting a task. The following changes were made:

  1. Updated api/views.py:

    • Added a delete method to the TaskViewSet class to handle task deletion.
  2. Updated api/urls.py:

    • Added a new URL pattern for the delete endpoint: tasks/<uuid:pk>/delete/.

You can now delete a task by making a DELETE request to the endpoint tasks/<uuid:pk>/delete/.