POST api/EnterpriseUser/GetDetailedProjects
JSON paramters: EnterpriseUserId. Returns the list of projects that the specified user can access, same as api/EnterpriseUser/GetProjects but with additional fields. Return format = JSON. This method originally created for use by the PDM application.
Request Information
URI Parameters
None.
Body Parameters
UserProjectsGetRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| EnterpriseUserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"EnterpriseUserId": 1
}
application/xml, text/xml
Sample:
<UserProjectsGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models.RequestParams"> <EnterpriseUserId>1</EnterpriseUserId> </UserProjectsGetRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of UserProjectDetailResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| ProjectName | string |
None. |
|
| ClientId | integer |
None. |
|
| ClientName | string |
None. |
|
| Year | integer |
None. |
|
| ProjectTypeId | byte |
None. |
|
| ProjectType | string |
None. |
|
| PopulationId | byte |
None. |
|
| Population | string |
None. |
|
| SampleId | integer |
None. |
|
| ProductType | integer |
None. |
|
| ProductLine | integer |
None. |
|
| flg_flushot | boolean |
None. |
|
| pop_smoke | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProjectId": 1,
"ProjectName": "sample string 2",
"ClientId": 3,
"ClientName": "sample string 4",
"Year": 1,
"ProjectTypeId": 64,
"ProjectType": "sample string 5",
"PopulationId": 64,
"Population": "sample string 6",
"SampleId": 7,
"ProductType": 1,
"ProductLine": 1,
"flg_flushot": true,
"pop_smoke": true
},
{
"ProjectId": 1,
"ProjectName": "sample string 2",
"ClientId": 3,
"ClientName": "sample string 4",
"Year": 1,
"ProjectTypeId": 64,
"ProjectType": "sample string 5",
"PopulationId": 64,
"Population": "sample string 6",
"SampleId": 7,
"ProductType": 1,
"ProductLine": 1,
"flg_flushot": true,
"pop_smoke": true
}
]
application/xml, text/xml
Sample:
<ArrayOfUserProjectDetailResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models.RequestResults">
<UserProjectDetailResult>
<ClientId>3</ClientId>
<ClientName>sample string 4</ClientName>
<Population>sample string 6</Population>
<PopulationId>64</PopulationId>
<ProductLine>1</ProductLine>
<ProductType>1</ProductType>
<ProjectId>1</ProjectId>
<ProjectName>sample string 2</ProjectName>
<ProjectType>sample string 5</ProjectType>
<ProjectTypeId>64</ProjectTypeId>
<SampleId>7</SampleId>
<Year>1</Year>
<flg_flushot>true</flg_flushot>
<pop_smoke>true</pop_smoke>
</UserProjectDetailResult>
<UserProjectDetailResult>
<ClientId>3</ClientId>
<ClientName>sample string 4</ClientName>
<Population>sample string 6</Population>
<PopulationId>64</PopulationId>
<ProductLine>1</ProductLine>
<ProductType>1</ProductType>
<ProjectId>1</ProjectId>
<ProjectName>sample string 2</ProjectName>
<ProjectType>sample string 5</ProjectType>
<ProjectTypeId>64</ProjectTypeId>
<SampleId>7</SampleId>
<Year>1</Year>
<flg_flushot>true</flg_flushot>
<pop_smoke>true</pop_smoke>
</UserProjectDetailResult>
</ArrayOfUserProjectDetailResult>