[Testlink-general] [restapi] projectID is missing when creating testproject correctly
Test & requirements management
Brought to you by:
franciscom
|
From: Antony <pa...@16...> - 2015-12-29 14:31:24
|
hi all,
I am sending the same post string to create a test project using TestLink RESTAPI and below is the output.
{"id":"","is_public":1,"color":"iamcolor","prefix":"001","name":"tp001","active":0,"notes":"iamnote","options":{"requirementsEnabled":0,"automationEnabled":1,"inventoryEnabled":1,"testPriorityEnabled":1}}
{"status":"ok","message":"ok"}
{"id":"","is_public":1,"color":"iamcolor","prefix":"001","name":"tp001","active":0,"notes":"iamnote","options":{"requirementsEnabled":0,"automationEnabled":1,"inventoryEnabled":1,"testPriorityEnabled":1}}
{"status":"ko","message":"There's already Test Project named tp001.","id":-1}
Obviously the project was created first time and an expected error message was sent to client the second time.
The issue is that when sending the post request first time and get the project created, there is NO "id" in the response.
I am using TestLink 1.9.14 and the same issues happened on RESTAPI v1/v2.
If it is not a correct place to post a TestLink issue, can anyone let me know the correct place ?
Thanks,
Antony
|