GET api/UserPreference/Get?projectId={projectId}&prefId={prefId}
Get current user's preference value base on reference id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectId |
Project id. |
integer |
Required |
prefId |
user preference id |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Get current user's preference value base on reference id
API_Data_TUserPrefName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | TUserPref |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "ProjectId": 1, "UserId": 2, "PrefId": 3, "PreferenceValue": 1, "PreferenceText": "sample string 4", "PreferenceMemo": "sample string 5" } }
application/xml, text/xml
Sample:
<API_Data_TUserPref xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Project"> <d2p1:PrefId>3</d2p1:PrefId> <d2p1:PreferenceMemo>sample string 5</d2p1:PreferenceMemo> <d2p1:PreferenceText>sample string 4</d2p1:PreferenceText> <d2p1:PreferenceValue>1</d2p1:PreferenceValue> <d2p1:ProjectId>1</d2p1:ProjectId> <d2p1:UserId>2</d2p1:UserId> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_TUserPref>