changes.mady.by.user Sergio Freire
Saved on Feb 27, 2018
...
Creates a folder and returns a JSON object with folder information.
projectKey
project key
folderId
name
name of folder
{ "name": "Folder1" }
curl -H "Content-Type: application/json" -X POST -u admin:admin --data @example.json http://yourserver/rest/raven/1.0/api/testrepository/FP/folders/-1
201 CREATED : application/json : Successful. Returns a JSON object.
{ "id": 6, "rank": 1, "name": "Folder1", "testRepositoryPath": "/Folder1" "testCount": 0, "totalTestCount": 0 }
400 BAD_REQUEST : text/plain : Returns the error.
401 UNAUTHORIZED : text/plain : The Xray for JIRA license is not valid.
500 INTERNAL SERVER ERROR : text/plain : An internal error occurred getting the folder.
Updates an existing folder.
{ "name": "Folder1", "rank": 4 }
curl -H "Content-Type: application/json" -X PUT -u admin:admin --data @example.json http://yourserver/rest/raven/1.0/api/testrepository/FP/folders/6
204 No content : text/plain : Successful. Does not return anything.
401 UNAUTHORIZED : text/plain : The Xray license is not valid.