GET v1/goals/{goalid}/tasks/{id}

Gets information about the specified task

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
goalID

Goal's ID

string

Required.

id

Task's ID

string

Required.

Body Parameters

None.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "ID": "sample string 1",
  "Text": "sample string 2",
  "DueDate": "2025-05-24T10:54:54.3408009+00:00",
  "IsCompleted": true,
  "Goal": {
    "ID": "sample string 1",
    "Name": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<GoalTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1">
  <DueDate>2025-05-24T10:54:54.3408009+00:00</DueDate>
  <Goal>
    <ID>sample string 1</ID>
    <Name>sample string 2</Name>
  </Goal>
  <ID>sample string 1</ID>
  <IsCompleted>true</IsCompleted>
  <Text>sample string 2</Text>
</GoalTaskModel>