From 2fd369b367fab96aa9d6b5758aecde2b8891e47a Mon Sep 17 00:00:00 2001 From: sslypushenko Date: Tue, 13 Jan 2015 01:24:05 +0200 Subject: [PATCH] Add test uids into REST API spec If test has a uid we should add a possibility to transmit them to Refstack from refstack-client. Change-Id: I6fc70dd7ffda13c51bcbb99a78cd096a48dc5cf5 --- specs/approved/api-v1.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/specs/approved/api-v1.md b/specs/approved/api-v1.md index 72109dba..20f3ff60 100755 --- a/specs/approved/api-v1.md +++ b/specs/approved/api-v1.md @@ -36,18 +36,16 @@ str:data - a string input containing json as shown in lower example. { 'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12', 'duration_seconds': 23445234, - 'job_id': '3fd4e1c67a2d28fced849ee1bb76e7391b93eb13', /*optional*/ - 'results': ['fully.qualified.test.path', 'another.test.path'] /* array of passes */ + 'results': [ + {'name':'fully.qualified.test.path', + 'uid':'test uuid'}, /* if test has uid. uid has a priority */ + {'name: 'another.test.path.without.uid'}] /* only passed tests */ } **normal response:** http:201 - the status has been saved { - 'id': '7fd4e1c67a2d28fced849ee1bb76e7391b93eb12', - 'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12', - 'duration_seconds': 23445234, - 'job_id': '3fd4e1c67a2d28fced849ee1bb76e7391b93eb13' - /* if posted without job_id this will contain the test id that was created */ + 'test_run_id': '7fd4e1c67a2d28fced849ee1bb76e7391b93eb12', } **failed response:** http:404 - the job_id does not exist @@ -139,4 +137,4 @@ N/A **References** -N/A \ No newline at end of file +N/A