From a8aa2186b6f5cd5fdb9a7c223444095bcaad3001 Mon Sep 17 00:00:00 2001 From: "jesus m. rodriguez" Date: Mon, 14 Sep 2009 16:34:47 -0400 Subject: test out submitting JSON to create test objects. --- proxy/code/scripts/test-testapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proxy/code/scripts/test-testapi.py') diff --git a/proxy/code/scripts/test-testapi.py b/proxy/code/scripts/test-testapi.py index 205c61a..518ecf5 100755 --- a/proxy/code/scripts/test-testapi.py +++ b/proxy/code/scripts/test-testapi.py @@ -9,7 +9,8 @@ if len(sys.argv) < 1: sys.exit(1) print("------------ TESTING json create") -params = {"name":"now","uuid":"thiswork","stringList":["string1", "string2"]} +parent = {"name":"parentname","uuid":"parentuuid","stringList":["string3", "string4"]} +params = {"name":"now","uuid":"thiswork","stringList":["string1", "string2"],"parent":parent} print(type(params['stringList'])) headers = {"Content-type":"application/json", "Accept": "application/json"} -- cgit