Commit 4d6225d0 by Adi Amir

update design

parent f25d9f84
Showing with 25 additions and 14 deletions
{ {
"api": [{ "api": [{
"id": "getCameraList", "id": "getCameraList",
"access": "PUBLIC",
"request": { "request": {
"method": "GET", "method": "GET",
"path": "v2/ge/media/cameras", "path": "v2/ge/media/cameras",
"params": [{ "params": [{
"bbox": "{quuery.bbox}[GEO]/mandatory" "bbox": "{QUERY.bbox}/GEO/MANDATORY",
"offset": "{QUERY.offset}/INT/OPTIONAL",
"limit": "{QUERY.limit}/INT/OPTIONAL"
}] }]
}, },
"actions": [{ "actions": [{
"type": "CALL_ADAPTER", "id": "ADAPTER/ge-v2/getCameraList",
"adapterId": "ge-v1",
"apiId": "getCameraList",
"params": [{ "params": [{
"bbox": "${request.query.bbox}[GEO]" "bbox": "${bbox}",
"offset": "${offset}",
"limit": "${limit}"
}], }],
"OnResponse": { "OnResult": [{
"$CAMERA_ARRAY": "response.content.content[JSON_ARRAY]" "SUCCESS": [{
} "CACHE": "camera_array/content/JSON_ARRAY"
}, { }, {
"type": "CALL_ADAPTER", "CALL": "ADAPTER/ge-v2/getCameraDetails"
}],
"ACCESS_DENIED": [{
"CALL_API": "API/ge-v2/getAccessToken"
}, {
"CALL_ADAPTER": "ADAPTER/ge-v2/getCameraList"
}]
}]
}, {
"id": "ADAPTER/ge-v2/getCameraDetails",
"params": [{"cameraId": "${camera_array.id}"}],
"rule": { "rule": {
"callEachEntryInArray": "${CAMERA_ARRAY}" "CALL_EACH_ENTRY_IN_ARRAY": {"source": "${camera_array}", "mode": "ASYNC", "callbackUrl": "http://${ps-domain}/public-safety/pedestrians/api/v1/crossWalk/event"}
}
}, },
"adapterId": "ge-v1",
"apiId": "getCameraDetails",
"params": [{ "params": [{
"cameraId": "${CAMERA_ARRAY}.assetUid}}" "cameraId": "${CAMERA_ARRAY}.assetUid}}"
}] }]
...@@ -34,5 +44,5 @@ ...@@ -34,5 +44,5 @@
"converterId": "J2J/parking-spot", "converterId": "J2J/parking-spot",
"input": "$content/spot" "input": "$content/spot"
}] }]
}] }, {"id": "getAcessToken"}]
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment