diff options
-rw-r--r-- | icespider/common/routes.ice | 2 | ||||
-rw-r--r-- | icespider/unittests/testRoutes.json | 42 |
2 files changed, 18 insertions, 26 deletions
diff --git a/icespider/common/routes.ice b/icespider/common/routes.ice index 511629c..6d022fb 100644 --- a/icespider/common/routes.ice +++ b/icespider/common/routes.ice @@ -5,6 +5,7 @@ module IceSpider { sequence<string> StringSeq; + ["slicer:json:object"] dictionary<string, string> StringMap; class Parameter { @@ -34,6 +35,7 @@ module IceSpider { StringMap paramOverrides; }; + ["slicer:json:object"] dictionary<string, Operation> Operations; class Route { diff --git a/icespider/unittests/testRoutes.json b/icespider/unittests/testRoutes.json index 3b96a11..a7b3f82 100644 --- a/icespider/unittests/testRoutes.json +++ b/icespider/unittests/testRoutes.json @@ -74,44 +74,34 @@ "path": "/mashS/{s}/{t}/{i}", "method": "GET", "type": "TestIceSpider.Mash1", - "operations": [{ - "key": "a", - "value": { + "operations": { + "a": { "operation": "TestIceSpider.TestApi.withParams" - } - }, - { - "key": "b", - "value": { + }, + "b": { "operation": "TestIceSpider.TestApi.withParams", - "paramOverrides": [{ - "key": "s", - "value": "t" - }] + "paramOverrides": { + "s": "t" + } } - }] + } }, { "name": "mashClass", "path": "/mashC/{s}/{t}/{i}", "method": "GET", "type": "TestIceSpider.Mash2", - "operations": [{ - "key": "a", - "value": { + "operations": { + "a": { "operation": "TestIceSpider.TestApi.withParams" - } - }, - { - "key": "b", - "value": { + }, + "b": { "operation": "TestIceSpider.TestApi.withParams", - "paramOverrides": [{ - "key": "s", - "value": "t" - }] + "paramOverrides": { + "s": "t" + } } - }] + } } ], "slices": [ |