GET api/Employees/GetProjectsInfoByEmployee?employeeID={employeeID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| employeeID | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
EmployeeProjectInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| DefaultProjectId | integer |
None. |
|
| Projects | Collection of Project |
None. |
|
| DefaultDepartmentId | integer |
None. |
|
| Departments | Collection of Department |
None. |
Response Formats
application/json, text/json
Sample:
{
"DefaultProjectId": 1,
"Projects": [
{
"Id": 1,
"Name": "sample string 2",
"DefaultPhaseId": 3,
"Phases": [
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3"
},
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3"
}
]
},
{
"Id": 1,
"Name": "sample string 2",
"DefaultPhaseId": 3,
"Phases": [
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3"
},
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3"
}
]
}
],
"DefaultDepartmentId": 2,
"Departments": [
{
"Id": 1,
"Name": "sample string 2",
"DefaultOperationId": 3,
"Operations": [
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
},
{
"Id": 1,
"Name": "sample string 2",
"DefaultOperationId": 3,
"Operations": [
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
}
]
}
application/xml, text/xml
Sample:
<EmployeeProjectInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrowsNest.Api">
<DefaultDepartmentId>2</DefaultDepartmentId>
<DefaultProjectId>1</DefaultProjectId>
<Departments>
<Department>
<DefaultOperationId>3</DefaultOperationId>
<Id>1</Id>
<Name>sample string 2</Name>
<Operations>
<Operation>
<Id>1</Id>
<Name>sample string 2</Name>
</Operation>
<Operation>
<Id>1</Id>
<Name>sample string 2</Name>
</Operation>
</Operations>
</Department>
<Department>
<DefaultOperationId>3</DefaultOperationId>
<Id>1</Id>
<Name>sample string 2</Name>
<Operations>
<Operation>
<Id>1</Id>
<Name>sample string 2</Name>
</Operation>
<Operation>
<Id>1</Id>
<Name>sample string 2</Name>
</Operation>
</Operations>
</Department>
</Departments>
<Projects>
<Project>
<DefaultPhaseId>3</DefaultPhaseId>
<Id>1</Id>
<Name>sample string 2</Name>
<Phases>
<Phase>
<Description>sample string 3</Description>
<Id>1</Id>
<Name>sample string 2</Name>
</Phase>
<Phase>
<Description>sample string 3</Description>
<Id>1</Id>
<Name>sample string 2</Name>
</Phase>
</Phases>
</Project>
<Project>
<DefaultPhaseId>3</DefaultPhaseId>
<Id>1</Id>
<Name>sample string 2</Name>
<Phases>
<Phase>
<Description>sample string 3</Description>
<Id>1</Id>
<Name>sample string 2</Name>
</Phase>
<Phase>
<Description>sample string 3</Description>
<Id>1</Id>
<Name>sample string 2</Name>
</Phase>
</Phases>
</Project>
</Projects>
</EmployeeProjectInfo>