TaskLeef API Belgeleri

Görevleri, projeleri ve kanban panolarını yönetmek için REST API

Son güncelleme:

Kimlik Doğrulama

API iki kimlik doğrulama yöntemini destekler:

1. API Anahtarı Kimlik Doğrulaması (Önerilen)

Generate an API key from your Settings page and include it in the X-API-Key header:

curl -H "X-API-Key: your-api-key" \
  https://taskleef.com/api/todos

2. JWT Taşıyıcı Belirteci

Tarayıcı tabanlı uygulamalar için giriş uç noktası üzerinden kimlik doğrulaması yapın:

curl -X POST https://taskleef.com/api/login \
  -H "Content-Type: application/json" \
  -d '{"username": "your-username", "password": "your-password"}'

Ardından belirteci sonraki isteklere ekleyin:

curl -H "Authorization: Bearer your-jwt-token" \
  https://taskleef.com/api/todos

Görevler

GET/api/todos

Kimliği doğrulanmış kullanıcının tüm görevlerini al.

curl -H "X-API-Key: your-api-key" \
  https://taskleef.com/api/todos
GET/api/todos/{id}

Kimliğe göre belirli bir görevi al.

GET/api/inbox

Herhangi bir projeye atanmamış görevleri al.

POST/api/todos

Yeni bir görev oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"title": "Buy groceries", "description": "Milk, eggs, bread"}' \
  https://taskleef.com/api/todos

İstek Gövdesi

AlanTürZorunluAçıklama
titlestringYesTodo title
descriptionstringNoDetailed description
dueDateISO 8601NoDue date/time
prioritystringNoLow, Medium, High, or Urgent
projectIdUUIDNoAssign to a project
PUT/api/todos/{id}

Mevcut bir görevi güncelle.

PATCH/api/todos/{id}/complete

Görev tamamlanma durumunu değiştir.

curl -X PATCH -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"isCompleted": true}' \
  https://taskleef.com/api/todos/{id}/complete
DELETE/api/todos/{id}

Bir görevi sil.

POST/api/todos/{parentId}/subtasks

Üst görev altında bir alt görev oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"title": "Subtask title"}' \
  https://taskleef.com/api/todos/{parentId}/subtasks

Projeler

GET/api/projects

Kimliği doğrulanmış kullanıcının tüm projelerini listele.

POST/api/projects

Yeni bir proje oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"title": "Work Tasks", "description": "Tasks for work"}' \
  https://taskleef.com/api/projects
GET/api/projects/{id}

Belirli bir projeyi görevleriyle birlikte al.

PUT/api/projects/{id}

Bir projeyi güncelle.

DELETE/api/projects/{id}

Bir projeyi sil (görevler gelen kutusuna taşınır).

Kanban Panoları

GET/api/boards

Kullanıcının erişebildiği tüm panoları listele.

POST/api/boards

Yeni bir pano oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"title": "Sprint Board", "projectId": "project-uuid"}' \
  https://taskleef.com/api/boards
GET/api/boards/{id}

Belirli bir panoyu al.

GET/api/boards/{boardId}/columns

Bir panonun tüm sütunlarını al.

GET/api/boards/{boardId}/todos

Bu panoda kartı bulunan tüm görevleri al.

Sütunlar

POST/api/boards/{boardId}/columns

Bir panoda yeni bir sütun oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"title": "In Progress", "wipLimit": 3}' \
  https://taskleef.com/api/boards/{boardId}/columns
PUT/api/columns/{id}

Bir sütunu güncelle (başlık, WIP sınırı, tamamlanma ölçütleri).

GET/api/columns/{columnId}/cards

Bir sütundaki tüm kartları al.

DELETE/api/columns/{id}

Bir sütunu sil.

Kartlar

Kartlar, bir kanban panosundaki görevleri temsil eder. Bir görevin birden fazla panoda kartı olabilir.

POST/api/columns/{columnId}/cards

Bir sütundaki görev için kart oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"todoId": "todo-uuid"}' \
  https://taskleef.com/api/columns/{columnId}/cards
PUT/api/cards/{id}

Bir kartı güncelle (farklı sütuna veya alt sütuna taşı).

# Move card to a different column
curl -X PUT -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"columnId": "new-column-uuid", "subColumn": "Inbox"}' \
  https://taskleef.com/api/cards/{id}

# Move card to Done subColumn
curl -X PUT -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"subColumn": "Done"}' \
  https://taskleef.com/api/cards/{id}

Alt Sütun Değerleri

  • Inbox - Active items in the column
  • Done - Completed items within the column
  • Blocked - Items waiting on external dependencies
DELETE/api/cards/{id}

Kartı panodan kaldır (görevi silmez).

Etiketler

GET/api/tags

Kimliği doğrulanmış kullanıcının tüm etiketlerini listele.

POST/api/tags

Yeni bir etiket oluştur.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"name": "urgent"}' \
  https://taskleef.com/api/tags
PUT/api/tags/{id}

Bir etiketi güncelle.

DELETE/api/tags/{id}

Bir etiketi sil.

Yorumlar

GET/api/todos/{todoId}/comments

Bir görevdeki tüm yorumları al.

POST/api/todos/{todoId}/comments

Bir göreve yorum ekle.

curl -X POST -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"text": "This is my comment"}' \
  https://taskleef.com/api/todos/{todoId}/comments
PUT/api/comments/{id}

Bir yorumu güncelle.

DELETE/api/comments/{id}

Bir yorumu sil.

Yanıt Biçimi

Başarılı Yanıtlar

Başarılı istekler, talep edilen verileri JSON olarak döndürür:

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "title": "Buy groceries",
  "description": "Milk, eggs, bread",
  "isCompleted": false,
  "createdAt": "2024-01-15T10:30:00Z"
}

Hata Yanıtları

Hatalar uygun HTTP durum kodlarını döndürür:

  • 400 - Bad Request (invalid input)
  • 401 - Unauthorized (missing or invalid authentication)
  • 403 - Forbidden (insufficient permissions)
  • 404 - Not Found
  • 500 - Internal Server Error

Need help? Check your Settings to manage API keys.