POST api/Admin/GetCustomDefectReportSetting?projectId={projectId}
GetCustomDefectReportSetting info based on project id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectId |
projectId |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
GetCustomDefectReportSetting info based on project id
API_Data_PPMDefectAlarmSettingName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | PPMDefectAlarmSetting |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "ppmProjectID": 1, "defectProjectID": 2, "droplistFields": [ { "Attributes": { "sample string 1": 2, "sample string 3": 4 }, "FieldID": 1, "DefaultName": "sample string 2", "FieldName": "sample string 3", "FieldTypeID": 4 }, { "Attributes": { "sample string 1": 2, "sample string 3": 4 }, "FieldID": 1, "DefaultName": "sample string 2", "FieldName": "sample string 3", "FieldTypeID": 4 } ], "defectFieldID": 3, "lstChoiceSetting": [ { "ProjectBaseFamilyID": 1, "DefectProjectBaseID": 2, "FieldID": 3, "ChoiceID": 4, "ThresholdValue": 1 }, { "ProjectBaseFamilyID": 1, "DefectProjectBaseID": 2, "FieldID": 3, "ChoiceID": 4, "ThresholdValue": 1 } ] } }
application/xml, text/xml
Sample:
<API_Data_PPMDefectAlarmSetting 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.Logic.Admin"> <d2p1:defectFieldID>3</d2p1:defectFieldID> <d2p1:defectProjectID>2</d2p1:defectProjectID> <d2p1:droplistFields xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d3p1:FieldDef> <d3p1:Attributes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringint> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>2</d5p1:Value> </d5p1:KeyValueOfstringint> <d5p1:KeyValueOfstringint> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>4</d5p1:Value> </d5p1:KeyValueOfstringint> </d3p1:Attributes> <d3p1:DefaultName>sample string 2</d3p1:DefaultName> <d3p1:FieldID>1</d3p1:FieldID> <d3p1:FieldName>sample string 3</d3p1:FieldName> <d3p1:FieldTypeID>4</d3p1:FieldTypeID> </d3p1:FieldDef> <d3p1:FieldDef> <d3p1:Attributes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringint> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>2</d5p1:Value> </d5p1:KeyValueOfstringint> <d5p1:KeyValueOfstringint> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>4</d5p1:Value> </d5p1:KeyValueOfstringint> </d3p1:Attributes> <d3p1:DefaultName>sample string 2</d3p1:DefaultName> <d3p1:FieldID>1</d3p1:FieldID> <d3p1:FieldName>sample string 3</d3p1:FieldName> <d3p1:FieldTypeID>4</d3p1:FieldTypeID> </d3p1:FieldDef> </d2p1:droplistFields> <d2p1:lstChoiceSetting xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.DevTrackDB"> <d3p1:CustomDefectReportSetting> <d3p1:ChoiceID>4</d3p1:ChoiceID> <d3p1:DefectProjectBaseID>2</d3p1:DefectProjectBaseID> <d3p1:FieldID>3</d3p1:FieldID> <d3p1:ProjectBaseFamilyID>1</d3p1:ProjectBaseFamilyID> <d3p1:ThresholdValue>1</d3p1:ThresholdValue> </d3p1:CustomDefectReportSetting> <d3p1:CustomDefectReportSetting> <d3p1:ChoiceID>4</d3p1:ChoiceID> <d3p1:DefectProjectBaseID>2</d3p1:DefectProjectBaseID> <d3p1:FieldID>3</d3p1:FieldID> <d3p1:ProjectBaseFamilyID>1</d3p1:ProjectBaseFamilyID> <d3p1:ThresholdValue>1</d3p1:ThresholdValue> </d3p1:CustomDefectReportSetting> </d2p1:lstChoiceSetting> <d2p1:ppmProjectID>1</d2p1:ppmProjectID> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_PPMDefectAlarmSetting>