Commit 4d6225d0 by Adi Amir

update design

parent f25d9f84
Showing with 31 additions and 20 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"
}, {
"CALL": "ADAPTER/ge-v2/getCameraDetails"
}],
"ACCESS_DENIED": [{
"CALL_API": "API/ge-v2/getAccessToken"
}, {
"CALL_ADAPTER": "ADAPTER/ge-v2/getCameraList"
}]
}]
}, {
"type": "CALL_ADAPTER",
"id": "ADAPTER/ge-v2/getCameraDetails",
"params": [{"cameraId": "${camera_array.id}"}],
"rule": {
"callEachEntryInArray": "${CAMERA_ARRAY}"
}
},
"adapterId": "ge-v1",
"apiId": "getCameraDetails",
"CALL_EACH_ENTRY_IN_ARRAY": {"source": "${camera_array}", "mode": "ASYNC", "callbackUrl": "http://${ps-domain}/public-safety/pedestrians/api/v1/crossWalk/event"}
},
"params": [{
"cameraId": "${CAMERA_ARRAY}.assetUid}}"
"cameraId": "${CAMERA_ARRAY}.assetUid}}"
}]
}, {
"type": "CONVERT",
"converterId": "J2J/parking-spot",
"input": "$content/spot"
}]
}]
"type": "CONVERT",
"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