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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
20 deletions
doc/mde2/srv.parking-v1.json
doc/mde2/srv.parking-v1.json
View file @
4d6225d0
{
{
"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"
},
{
"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"
:
{
"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}}"
}]
}]
},
{
},
{
"type"
:
"CONVERT"
,
"type"
:
"CONVERT"
,
"converterId"
:
"J2J/parking-spot"
,
"converterId"
:
"J2J/parking-spot"
,
"input"
:
"$content/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