GET favorites Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- GET: /qcbin/rest/domains/DOMAIN_NAME/projects/PROJECT_NAME/favorites Accept: application/xml --> <Favorites> <Favorite> <id>1001</id> <module-id>0</module-id> <parent-id>1</parent-id> <name>favorite1</name> <owner>sa</owner> <is-public>false</is-public> <Filter Entity="defect" KeepDescendants="false" KeepHierarchical="false"> <Where> <Field Name="owner" Value="sa"/> </Where> <Grouping/> <Sort/> </Filter> <Layout> <ViewLogicalName></ViewLogicalName> <VisibleColumns> <Column> <Entity>defect</Entity> <Name>actual-fix-time</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>owner</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>closing-version</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>closing-date</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>dev-comments</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>id</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>description</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>detected-by</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>detected-in-rcyc</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>detected-in-rel</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>detection-version</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>creation-time</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>environment</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>estimated-fix-time</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>last-modified</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>planned-closing-ver</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>priority</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>project</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>reproducible</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>severity</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>status</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>subject</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>name</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>target-rcyc</Name> <Width>100</Width> </Column> <Column> <Entity>defect</Entity> <Name>target-rel</Name> <Width>100</Width> </Column> </VisibleColumns> </Layout> <format-version>1</format-version> <workspace-data></workspace-data> <has-shares>false</has-shares> </Favorite> </Favorites>
GET /qcbin/rest/domains/DOMAIN_NAME/projects/PROJECT_NAME/favorites
Accept: application/json
{
"Favorites": [
{
"id": 1001,
"module-id": 0,
"parent-id": 1,
"name": "favorite1",
"owner": "sa",
"Filter": {
"Where": {
"Field": [
{
"Name": "owner",
"Value": "sa"
}
]
},
"SelectedFields": [],
"CrossFilter": [],
"Grouping": {
"Field": []
},
"Sort": {
"Field": []
},
"KeepHierarchical": false,
"KeepDescendants": false,
"Entity": "defect"
},
"Layout": {
"ViewLogicalName": "",
"VisibleColumns": [
{
"Name": "actual-fix-time",
"Width": 100,
"Entity": "defect"
},
{
"Name": "owner",
"Width": 100,
"Entity": "defect"
},
{
"Name": "closing-version",
"Width": 100,
"Entity": "defect"
},
{
"Name": "closing-date",
"Width": 100,
"Entity": "defect"
},
{
"Name": "dev-comments",
"Width": 100,
"Entity": "defect"
},
{
"Name": "id",
"Width": 100,
"Entity": "defect"
},
{
"Name": "description",
"Width": 100,
"Entity": "defect"
},
{
"Name": "detected-by",
"Width": 100,
"Entity": "defect"
},
{
"Name": "detected-in-rcyc",
"Width": 100,
"Entity": "defect"
},
{
"Name": "detected-in-rel",
"Width": 100,
"Entity": "defect"
},
{
"Name": "detection-version",
"Width": 100,
"Entity": "defect"
},
{
"Name": "creation-time",
"Width": 100,
"Entity": "defect"
},
{
"Name": "environment",
"Width": 100,
"Entity": "defect"
},
{
"Name": "estimated-fix-time",
"Width": 100,
"Entity": "defect"
},
{
"Name": "last-modified",
"Width": 100,
"Entity": "defect"
},
{
"Name": "planned-closing-ver",
"Width": 100,
"Entity": "defect"
},
{
"Name": "priority",
"Width": 100,
"Entity": "defect"
},
{
"Name": "project",
"Width": 100,
"Entity": "defect"
},
{
"Name": "reproducible",
"Width": 100,
"Entity": "defect"
},
{
"Name": "severity",
"Width": 100,
"Entity": "defect"
},
{
"Name": "status",
"Width": 100,
"Entity": "defect"
},
{
"Name": "subject",
"Width": 100,
"Entity": "defect"
},
{
"Name": "name",
"Width": 100,
"Entity": "defect"
},
{
"Name": "target-rcyc",
"Width": 100,
"Entity": "defect"
},
{
"Name": "target-rel",
"Width": 100,
"Entity": "defect"
}
]
},
"format-version": 1,
"workspace-data": "",
"has-shares": false,
"is-public": false
}
]
}

