Commit 4d6225d0 by Adi Amir

update design

parent f25d9f84
Showing with 25 additions and 14 deletions
{
"api": [{
"id": "getCameraList",
"access": "PUBLIC",
"request": {
"method": "GET",
"path": "v2/ge/media/cameras",
"params": [{
"bbox": "{quuery.bbox}[GEO]/mandatory"
"bbox": "{QUERY.bbox}/GEO/MANDATORY",
"offset": "{QUERY.offset}/INT/OPTIONAL",
"limit": "{QUERY.limit}/INT/OPTIONAL"
}]
},
"actions": [{
"type": "CALL_ADAPTER",
"adapterId": "ge-v1",
"apiId": "getCameraList",
"id": "ADAPTER/ge-v2/getCameraList",
"params": [{
"bbox": "${request.query.bbox}[GEO]"
"bbox": "${bbox}",
"offset": "${offset}",
"limit": "${limit}"
}],
"OnResponse": {
"$CAMERA_ARRAY": "response.content.content[JSON_ARRAY]"
}
"OnResult": [{
"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": {
"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": [{
"cameraId": "${CAMERA_ARRAY}.assetUid}}"
}]
......@@ -34,5 +44,5 @@
"converterId": "J2J/parking-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