Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
mde
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4d6225d0
authored
Mar 26, 2017
by
Adi Amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update design
parent
f25d9f84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
doc/mde2/srv.parking-v1.json
doc/mde2/srv.parking-v1.json
View file @
4d6225d0
{
"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}"
}],
"OnRes
ponse"
:
{
"
$CAMERA_ARRAY"
:
"response.content.content[JSON_ARRAY]"
}
"OnRes
ult"
:
[
{
"
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment