GET v1/goals/{goalid}/tasks
Gets a list of all tasks for the specified goal
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
goalID |
Goal's ID |
string |
Required. |
Body Parameters
None.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
[ { "ID": "sample string 1", "Text": "sample string 2", "DueDate": "2025-05-24T11:25:32.0896703+00:00", "IsCompleted": true, "Goal": { "ID": "sample string 1", "Name": "sample string 2" } }, { "ID": "sample string 1", "Text": "sample string 2", "DueDate": "2025-05-24T11:25:32.0896703+00:00", "IsCompleted": true, "Goal": { "ID": "sample string 1", "Name": "sample string 2" } } ]
application/xml, text/xml
Sample:
<ArrayOfGoalTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1"> <GoalTaskModel> <DueDate>2025-05-24T11:25:32.0896703+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> <GoalTaskModel> <DueDate>2025-05-24T11:25:32.0896703+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> </ArrayOfGoalTaskModel>