Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-1255

As a machine, the REST API should return a list of folders contained in a Test repository

    XporterXMLWordPrintable

Details

    Description

      The REST API should provide a GET operation for obtaining a list of folders contained in the Test Repository associated with a given project key.

      GET /rest/raven/1.0/api/testrepository/<projectKey>/folders
      

      The answer should contain all folders, each one represented by its full path name (e.g. "regression/UI").

      Example:

      //Folder list by projectKey: /rest/raven/1.0/api/testrepository/FP/folders
      {
      "folders": [
        {
         "id": 6,
         "rank": 1,
         "name": "Folder1",
         "testRepositoryPath": "/Folder1"
         "folders": [],
         "testCount": 0,
         "totalTestCount": 0
        },
        {
         "id": 7,
         "rank": 2,
         "name": "Folder2",
         "testRepositoryPath": "/Folder2", // ??
         "folders": [
           {
             "id": 8,
             "rank": 1,
             "name": "Sub2",
             "testRepositoryPath": "/Folder2/Sub2", 
             "folders": [],
             "testCount": 1,
             "totalTestCount": 1
            },
            {
             ...
            }
          ],
          "testCount": 0,
          "totalTestCount": 3
         }
        ],
      
      }
      

       

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            smsf Sergio Freire
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 6 hours, 20 minutes Remaining Estimate - 1 day, 1 hour, 40 minutes
                1d 1h 40m
                Logged:
                Time Spent - 6 hours, 20 minutes Remaining Estimate - 1 day, 1 hour, 40 minutes
                6h 20m