Commit 652e9394 by Adi Amir

update docs

parent a7afe22b
Showing with 155 additions and 0 deletions
**************
GetClientToken
**************
v1
==
https://9deacc64-7c53-4790-9a6c-c9de0fdebcdf.predix-uaa.run.aws-usw02-pr.ice.predix.io/oauth/token
{
"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImxlZ2FjeS10b2tlbi1rZXkiLCJ0eXAiOiJKV1QifQ.eyJqdGkiOiJjODQ1NGYzNDRlNTU0ZGU0YmY5NzgzNTBhNWU1NzIzOCIsInN1YiI6ImlwZ2FsbGVyeSIsInNjb3BlIjpbInVhYS5yZXNvdXJjZSIsImllLXBhcmtpbmcuem9uZXMuYzU0ZTNlNjMtOGRjNi00MjVlLWE1MzMtNjRlMDYxZjY0MDIzLnVzZXIiLCJvcGVuaWQiLCJ1YWEubm9uZSIsImllLXRyYWZmaWMuem9uZXMuYjZmYzIyYjYtYWQ3MS00MjNlLTg2N2ItYTFiMTk3ZjZjZmMyLnVzZXIiLCJpZS1wdWJsaWMtc2FmZXR5LnpvbmVzLjY4YjhkNjM5LWNjMzktNDcwOS05NTJlLTMyN2M5YzIwNzEyYS51c2VyIiwiaWUtcGVkZXN0cmlhbi56b25lcy5jMWUwMTJkMy02NTNmLTRmNzEtYjAzZC03NjgxMGRiOGQ0OGUudXNlciJdLCJjbGllbnRfaWQiOiJpcGdhbGxlcnkiLCJjaWQiOiJpcGdhbGxlcnkiLCJhenAiOiJpcGdhbGxlcnkiLCJncmFudF90eXBlIjoiY2xpZW50X2NyZWRlbnRpYWxzIiwicmV2X3NpZyI6IjdjODlkYjBjIiwiaWF0IjoxNDg4MjczMjQyLCJleHAiOjE0ODgzMTY0NDIsImlzcyI6Imh0dHBzOi8vOWRlYWNjNjQtN2M1My00NzkwLTlhNmMtYzlkZTBmZGViY2RmLnByZWRpeC11YWEucnVuLmF3cy11c3cwMi1wci5pY2UucHJlZGl4LmlvL29hdXRoL3Rva2VuIiwiemlkIjoiOWRlYWNjNjQtN2M1My00NzkwLTlhNmMtYzlkZTBmZGViY2RmIiwiYXVkIjpbInVhYSIsImllLXBhcmtpbmcuem9uZXMuYzU0ZTNlNjMtOGRjNi00MjVlLWE1MzMtNjRlMDYxZjY0MDIzIiwib3BlbmlkIiwiaWUtdHJhZmZpYy56b25lcy5iNmZjMjJiNi1hZDcxLTQyM2UtODY3Yi1hMWIxOTdmNmNmYzIiLCJpcGdhbGxlcnkiLCJpZS1wZWRlc3RyaWFuLnpvbmVzLmMxZTAxMmQzLTY1M2YtNGY3MS1iMDNkLTc2ODEwZGI4ZDQ4ZSIsImllLXB1YmxpYy1zYWZldHkuem9uZXMuNjhiOGQ2MzktY2MzOS00NzA5LTk1MmUtMzI3YzljMjA3MTJhIl19.lEzeaUSCvtQYlleye3fvCA8Lg7pIVb_payuNCX3xz55VC1OG6EzV0XOhdow3VAFsqoB9Y2F0z9QkE1ZVIoytQURUzHuPKBLdxyeIW5eO798WFOxotcWwrjW1fBva7r_cuUb5xnpNHRqscO-3bQlV2sHBbFoAGBle0a43fUHoTwRW3PaSgOnjDvC_9-bjfywmRnKbGo4BSpPK2q9JywDum1hiprNEH1AiE75ccpfbYVEc77mRtzJMxZqCUttFd9ytclSCBcbDbh0yKHhcFOXmc2ILnRhidFltJFAxmJPIf2TvZrBivuVSCeRSnmdaasx5sFsMICps5euAjPu3dL5RPg",
"token_type": "bearer",
"expires_in": 43199,
"scope": "uaa.resource ie-parking.zones.c54e3e63-8dc6-425e-a533-64e061f64023.user openid uaa.none ie-traffic.zones.b6fc22b6-ad71-423e-867b-a1b197f6cfc2.user ie-public-safety.zones.68b8d639-cc39-4709-952e-327c9c20712a.user ie-pedestrian.zones.c1e012d3-653f-4f71-b03d-76810db8d48e.user",
"jti": "c8454f344e554de4bf978350a5e57238"
}
v2
==
{{UAAURL}}?grant_type=client_credentials&client_id=ipgallery
https://8553482c-1d32-4d38-8597-2e56ab642dd3.predix-uaa.run.asv-pr.ice.predix.io/oauth/token?grant_type=client_credentials&client_id=ipgallery
{
"access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CJpZS1jdXJyZW50Lmljcy1JRS1UUkFGRklDLklFLVRSQUZGSUMuTElNSVRFRCIsImllLWN1cnJlbnQuaWNzLUlFLVBFREVTVFJJQU4uSUUtUEVERVNUUklBTi5MSU1JVEVEIiwiaXBnYWxsZXJ5IiwiaWUtY3VycmVudC5pY3MtSUUtRU5WSVJPTk1FTlRBTC5JRS1FTlZJUk9OTUVOVEFMLkZSRUUiLCJpZS1jdXJyZW50Lmljcy1JRS1QVUJMSUMtU0FGRVRZLklFLVBVQkxJQy1TQUZFVFkuTElNSVRFRCJdfQ.QaKfwUJA94eEXt2x2SiJVxpUcS8d7PLWSWvrU4sKeKrwA2O4vTioC8PT8FZoGQ1ic1srBT54uUP2Egpg5Ew2J80cdjbEs-FGZWu9C_8KEpPzwW14DNn13g0symbh_gEbIMlv-oDusDs2LJsPD57r2wFQWfSHUpgELkmg7ofy2mgjnuTgiGMV02OS2dsEErKbt6jli3kJAR--IjLu1AgopNguFoJvcR9im8ek1A1_S-8tQSm8joCGklLKc6j6SM89wh0XIP62feUiko9MFIFlOoSzuSuiTGGNS_WUxZ342Q5i8Nus6dQ1BhnGVsuo-n9cGPveDsT42tsyd5VwxMk91A",
"token_type": "bearer",
"expires_in": 604799,
"scope": "ie-current.ics-IE-PUBLIC-SAFETY.IE-PUBLIC-SAFETY.LIMITED.DEVELOP uaa.resource ie-current.ics-IE-ENVIRONMENTAL.IE-ENVIRONMENTAL.FREE.DEVELOP ie-current.ics-IE-PARKING.IE-PARKING.LIMITED.DEVELOP ie-current.ics-IE-TRAFFIC.IE-TRAFFIC.LIMITED.DEVELOP ie-current.ics-IE-PEDESTRIAN.IE-PEDESTRIAN.LIMITED.DEVELOP",
"jti": "d7c99bd07c704363973e24afdedccca5"
}
*************************
getParkingSearchLocations
*************************
v1
==
https://ie-parking.run.aws-usw02-pr.ice.predix.io/v1/locations/search?q=location-type:PARKING_SPOT&bbox=32.123:-117,32.714983:-117.158012
{
"_embedded": {
"locations": [
{
"coordinates": {
"P1": "32.711734697964815,-117.1573294130409",
"P2": "32.711736,-117.15736248188104",
"P3": "32.711858,-117.15736455072118",
"P4": "32.711859,-117.1573304130409"
},
"_links": {
"self": {
"href": "http://ie-parking.run.aws-usw02-pr.ice.predix.io/v1/locations/1000000047"
}
},
"location-uid": "157-parkingspot",
"location-type": "PARKING_SPOT"
},
{
"coordinates": {
"P1": "32.711637,-117.15732968838816",
"P2": "32.711637100678395,-117.15736341303291",
"P3": "32.711734,-117.15736427535526",
"P4": "32.711733,-117.15733055071051"
},
"_links": {
"self": {
"href": "http://ie-parking.run.aws-usw02-pr.ice.predix.io/v1/locations/1000000048"
}
},
"location-uid": "158-parkingspot",
"location-type": "PARKING_SPOT"
}
]
},
"_links": {
"self": {
"href": "http://ie-parking.run.aws-usw02-pr.ice.predix.io/v1/locations/search?q=location-type:PARKING_SPOT&bbox=32.123:-117,32.714983:-117.158012"
}
},
"page": {
"size": 20,
"totalElements": 17,
"totalPages": 1,
"number": 0
}
}
v2
==
{{metadataurl}}/locations/search?q=locationType:PARKING_ZONE&bbox={{bbox}}&page=0&size=50
https://ie-cities-metadata.run.asv-pr-pub.ice.predix.io/v2/locations/search?q=locationType:PARKING_ZONE&bbox={{bbox}}&page=0&size=50
{
"content": [
{
"locationUid": "LOCATION-STG-325",
"locationType": "PARKING_ZONE",
"parentLocationUid": null,
"coordinatesType": "GEO",
"coordinates": "32.71479420135679:-117.15733872449066,32.71479420135679:-117.15738127551268,32.71514478969785:-117.15738141326892,32.71514478969785:-117.15734172449056",
"name": null
},
{
"locationUid": "LOCATION-STG-324",
"locationType": "PARKING_ZONE",
"parentLocationUid": null,
"coordinatesType": "GEO",
"coordinates": "32.71371280542716:-117.15680815265719,32.71371280542716:-117.15664045157568,32.71368582577899:-117.15664045157568,32.71368582577899:-117.15680815265719",
"name": null
}
],
"last": true,
"totalElements": 29,
"totalPages": 1,
"numberOfElements": 29,
"sort": null,
"first": true,
"size": 50,
"number": 0
}
*************
getCameraList
*************
public-safety ==> GET 172.16.1.72:50005/public-safety/media/api/v2/modiin/cameras
response:
[{
"id": "CAMERA-STG-HYP1017-CAM-L",
"mediaType": "IMAGE,VIDEO",
"lat": 32.714759,
"lon": -117.157563,
"links": [{
"latestImage": "XXX"
}, {
"latestVideo": "XXX"
}]
}]
MDE ==> GET 172.16.1.72:50005/mde/api/v2/ge/media/cameras?bbox=xxxx
GEManager ==> GET {{metadataurl}}/assets/search?bbox={{bbox}}&page=0&size=50&q=assetType:CAMERA
response:
{
"assetUid": "CAMERA-STG-HYP1017-CAM-L",
"parentAssetUid": "NODE-STG-HYP1017",
"eventTypes": [],
"mediaType": "IMAGE,VIDEO",
"assetType": "CAMERA",
"coordinates": "32.714759:-117.157563"
}
examples:
172.16.1.72:50005/public-safety/media/api/v2/modiin/cameras/CAMERA-STG-HYP1017-CAM-L/images/from/to
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