Skip to content
All API projects

TaskFlow

TaskFlow task and project management backend API endpoints.

Backend repository

Authentication (Auth)

POST/api/auth/register

Registers a new user.

Example request body

{
  "name": "Örnek Kullanıcı",
  "email": "user@example.com",
  "password": "••••••••"
}
POST/api/auth/login

Signs in the user and generates a JWT for the session.

Example request body

{
  "email": "user@example.com",
  "password": "••••••••"
}
PUT/api/auth/change-passwordAuthentication required

Updates the password of the signed-in user.

Example request body

{
  "oldPassword": "••••••••",
  "newPassword": "••••••••"
}

User Management (Users)

PUT/api/users/change-user-roleAuthentication required

Updates a user's role.

Example request body

{
  "userId": "user-123",
  "newRole": "Manager"
}
DELETE/api/users/delete-user/:userIdAuthentication required

Deletes the specified user.

Project Management (Projects)

POST/api/projects/createAuthentication required

Creates a project.

Example request body

{
  "name": "Web sitesi yenileme",
  "description": "Kurumsal web sitesinin yenilenmesi"
}
GET/api/projects/get-all?search=param&status=active

Lists projects with search and status filters.

GET/api/projects/get/:projectId

Returns details for the specified project.

GET/api/projects/owner/:ownerId

Retrieves the projects managed by the manager with the given ID value.

PUT/api/projects/update/:projectIdAuthentication required

Updates an existing project.

Example request body

{
  "name": "Güncellenmiş proje",
  "description": "Güncel proje açıklaması",
  "status": "active"
}
DELETE/api/projects/delete/:projectIdAuthentication required

Deletes the specified project.

Task Management (Tasks)

POST/api/tasks/createAuthentication required

Creates a task for a project and assigns it to a team member.

Example request body

{
  "title": "Ana sayfa tasarımı",
  "description": "Ana sayfa arayüzünü hazırla",
  "projectId": "project-123",
  "assigneeId": "user-456",
  "status": "PENDING",
  "priority": "medium"
}
GET/api/tasks/get-all?search=title&page=1&limit=10&status=PENDING

Lists tasks with title search, pagination, and status filters.

GET/api/tasks/get/:taskId

Returns task details and its assignee.

GET/api/tasks/project/:projectId

Lists tasks and progress for a project.

PUT/api/tasks/update/:taskIdAuthentication required

Updates task details or status.

Example request body

{
  "title": "Ana sayfa tasarımı",
  "description": "Arayüzü tamamla",
  "status": "IN_PROGRESS",
  "priority": "medium"
}
DELETE/api/tasks/delete/:taskIdAuthentication required

Deletes the specified task.