Sobes.tech
Middle

1. GET Tasks(bool iscom, Prio)

sobes.tech AI

Answer from AI

The GET method for retrieving tasks with parameters iscom (boolean, for example, whether the task is completed or not) and Prio (priority) is usually implemented with server-side filtering.

Example request:

GET /tasks?iscom=true&prio=high

Where:

  • iscom=true — return only completed tasks
  • prio=high — return tasks with high priority

The server filters the list of tasks based on these parameters and returns a JSON array with the matching tasks.

Example response:

[
  {"id":1, "title":"Task 1", "isCompleted":true, "priority":"high"},
  {"id":5, "title":"Task 5", "isCompleted":true, "priority":"high"}
]
1. GET Tasks(bool iscom, Prio) — System Analyst - sobes.tech