GET api/Projects
Gets all Project.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Projects
Collection of Project| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectID |
Gets or sets the ID of the project. |
integer |
None. |
| ProjectName |
Gets or sets the name of the project. |
string |
None. |
| LastUpdated |
Gets or sets the last updated timestamp of the project. |
string |
None. |
| Tasks |
Gets or sets the list of tasks in the project. |
Collection of Task |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProjectID": 1,
"ProjectName": "sample string 2",
"LastUpdated": "sample string 3",
"Tasks": [
{
"TaskID": 1,
"TaskName": "sample string 2",
"Description": "sample string 3",
"Progress": 4,
"TaskStatus": true
},
{
"TaskID": 1,
"TaskName": "sample string 2",
"Description": "sample string 3",
"Progress": 4,
"TaskStatus": true
}
]
},
{
"ProjectID": 1,
"ProjectName": "sample string 2",
"LastUpdated": "sample string 3",
"Tasks": [
{
"TaskID": 1,
"TaskName": "sample string 2",
"Description": "sample string 3",
"Progress": 4,
"TaskStatus": true
},
{
"TaskID": 1,
"TaskName": "sample string 2",
"Description": "sample string 3",
"Progress": 4,
"TaskStatus": true
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
<Project>
<LastUpdated>sample string 3</LastUpdated>
<ProjectID>1</ProjectID>
<ProjectName>sample string 2</ProjectName>
<Tasks>
<Task>
<Description>sample string 3</Description>
<Progress>4</Progress>
<TaskID>1</TaskID>
<TaskName>sample string 2</TaskName>
<TaskStatus>true</TaskStatus>
</Task>
<Task>
<Description>sample string 3</Description>
<Progress>4</Progress>
<TaskID>1</TaskID>
<TaskName>sample string 2</TaskName>
<TaskStatus>true</TaskStatus>
</Task>
</Tasks>
</Project>
<Project>
<LastUpdated>sample string 3</LastUpdated>
<ProjectID>1</ProjectID>
<ProjectName>sample string 2</ProjectName>
<Tasks>
<Task>
<Description>sample string 3</Description>
<Progress>4</Progress>
<TaskID>1</TaskID>
<TaskName>sample string 2</TaskName>
<TaskStatus>true</TaskStatus>
</Task>
<Task>
<Description>sample string 3</Description>
<Progress>4</Progress>
<TaskID>1</TaskID>
<TaskName>sample string 2</TaskName>
<TaskStatus>true</TaskStatus>
</Task>
</Tasks>
</Project>
</ArrayOfProject>