POST api/EnterpriseUser/GetProjects
JSON paramters: EnterpriseUserId. Returns the list of projects that the specified user can access. Return format = JSON. This method originally created for use by the CSC 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 UserProjectResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| ProjectName | string |
None. |
|
| OmniMapId | integer |
None. |
|
| Year | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProjectId": 1,
"ProjectName": "sample string 2",
"OmniMapId": 1,
"Year": 1
},
{
"ProjectId": 1,
"ProjectName": "sample string 2",
"OmniMapId": 1,
"Year": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfUserProjectResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models.RequestResults">
<UserProjectResult>
<OmniMapId>1</OmniMapId>
<ProjectId>1</ProjectId>
<ProjectName>sample string 2</ProjectName>
<Year>1</Year>
</UserProjectResult>
<UserProjectResult>
<OmniMapId>1</OmniMapId>
<ProjectId>1</ProjectId>
<ProjectName>sample string 2</ProjectName>
<Year>1</Year>
</UserProjectResult>
</ArrayOfUserProjectResult>