-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrestTest.http
More file actions
155 lines (111 loc) · 5.24 KB
/
restTest.http
File metadata and controls
155 lines (111 loc) · 5.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
@server = http://localhost:8080
###
GET {{server}}/xo/integrity
###
POST http://localhost:8080/xo/update_map
Content-Type: application/json
{"layer_id":1,"count":500,"bounds_xgeo":{"type":"Polygon","coordinates":[[[-16801923.100868735,-71898.17690792494],[-16801923.100868735,9794593.702198492],[-5054749.34059165,9794593.702198492],[-5054749.34059165,-71898.17690792494],[-16801923.100868735,-71898.17690792494]]],"crs":{"type":"name","properties":{"name":"EPSG:3857"}}},"xid_list":[]}
###
GET http://localhost:8080/xo/layerset/list
###
GET http://localhost:8080/xo/xschema
###
GET http://localhost:8080/xo/layer/list
###
POST http://localhost:8080/xo/xobject
Content-Type: application/json
{
"xObject":{
"xType":"polygon",
"xId":null,
"xGeo":{
"type":"Polygon",
"coordinates":[
[
[ -12302312.09001489, 6071149.942120592 ],
[ -12593346.075210698, 5664008.110959601 ],
[ -11923795.925946698, 5482470.168782307 ],
[ -12061650.106459014, 6136847.5679317005 ],
[ -12302312.09001489, 6071149.942120592 ]
]
],
"crs":{ "type":"name", "properties":{ "name":"EPSG:3857" } }
},
"xLayer": "fl1"
}
}
/*
hereapi.com
api key: 4AxvLKySh6QYK4VMw5mFaeivkX8A7gRaMW0FNRODGDU
api key: h8ySntxXQW6iu-d_3I2n7irs3wc7fh0rM165w1wLQBg
access key id: IE8GnrBHnf2RrCyqJ1-hSQ
access key secret: Dfk_W09WLTyh6EMrCPtfNUSRQUEJh4DbQ8P3uekTSHAtTwf6Zk9S0cOZn1Y-ppiKW4IZ2pLfKrEYqTVEpDf9Yg
? Authorization: Bearer ASfo2Trpsj9u94smGBZVZ9jcwicmxh1YuMxfcQmxj_4iXnfEu3SKDOGhGm-Rk7vdPY6QJRG97Qe2YqoQnYBdoA
*/
@APIKEY=apikey=4AxvLKySh6QYK4VMw5mFaeivkX8A7gRaMW0FNRODGDU
###
POST https://account.api.here.com/oauth2/token
### route request using apiKey
GET https://router.hereapi.com/v8/routes?apikey=4AxvLKySh6QYK4VMw5mFaeivkX8A7gRaMW0FNRODGDU&transportMode=car&origin=52.5308,13.3847&destination=52.5264,13.3686&return=summary
###
GET https://router.hereapi.com/v8/routes?{{APIKEY}}&transportMode=car&return=polyline&origin=52.51375,13.42462&destination=52.52332,13.42800&via=52.52426,13.43000
### route request using bearer token
GET https://router.hereapi.com/v8/routes?transportMode=car&origin=52.5308,13.3847&destination=52.5264,13.3686&return=summary
Authorization: Bearer Dfk_W09WLTyh6EMrCPtfNUSRQUEJh4DbQ8P3uekTSHAtTwf6Zk9S0cOZn1Y-ppiKW4IZ2pLfKrEYqTVEpDf9Yg
###
GET https://geocoder.ls.hereapi.com/6.2/geocode.json?apiKey=4AxvLKySh6QYK4VMw5mFaeivkX8A7gRaMW0FNRODGDU&searchtext=3077+South+Street,+Clinton,NY
###
GET https://route.ls.hereapi.com/routing/7.2/calculateroute.json?apiKey=4AxvLKySh6QYK4VMw5mFaeivkX8A7gRaMW0FNRODGDU&waypoint0=geo!52.2,13.4&Waypoint1=geo!52.5,13.45&mode=shortest;pedestrian
###
GET https://route.ls.hereapi.com/routing/7.2/calculateroute.json?waypoint0=geo!52.2,13.4&Waypoint1=geo!52.5,13.45&mode=shortest;pedestrian
Authorization: Bearer ASfo2Trpsj9u94smGBZVZ9jcwicmxh1YuMxfcQmxj_4iXnfEu3SKDOGhGm-Rk7vdPY6QJRG97Qe2YqoQnYBdoA
access key id: avu7tuiRYAT-j0iA424y1w
access key secret: ASfo2Trpsj9u94smGBZVZ9jcwicmxh1YuMxfcQmxj_4iXnfEu3SKDOGhGm-Rk7vdPY6QJRG97Qe2YqoQnYBdoA
###
GET http://localhost:8080/xo/bookmark/list
AAuthorization: Bearer gkelly
###
GET http://localhost:8080/xo/user/get_context
Authorization: Bearer gkelly
###
GET http://localhost:8080/xo/user/get_context
Authorization: Bearer gkelly
###
POST http://localhost:8080/xo/bookmark/list
Content-Type: application/json
{
"module": "bookmarks"
"cmd": "bookmarks"
}
###
GET https://localhost:8080/geojson
### xobjects keycloak
###
@keycloak_host=localhost:8080
@keycloak_realm=XObjects_admin
@user=admin
@pass=admin
@client_id=XObjects_admin_client
@client_secret=6e1f4942-0e4f-458b-b024-b3de957fe549
### Request access_token
POST http://{{keycloak_host}}/auth/realms/{{keycloak_realm}}/protocol/openid-connect/token
Content-Type: application/x-www-form-urlencoded
client_id={{client_id}}&username={{user}}&password={{pass}}&grant_type=password&client_secret={{client_secret}}
###
GET https://api.openrouteservice.org/v2/directions/driving-car?api_key=5b3ce3597851110001cf624827e9213ff2de4275a6a6152f7fb645f0&start=8.681495,49.41461&end=8.687872,49.420318
###
GET https://api.openrouteservice.org/geocode/search?api_key=5b3ce3597851110001cf624827e9213ff2de4275a6a6152f7fb645f0&text=3077%20South%20St,%20clinton,%20ny,%2013323&layers=address
###
GET https://api.openrouteservice.org/geocode/search?api_key=5b3ce3597851110001cf624827e9213ff2de4275a6a6152f7fb645f0&text=100%20Main%20St&layers=address
###
POST https://api.openrouteservice.org/pois
Authorization: 5b3ce3597851110001cf624827e9213ff2de4275a6a6152f7fb645f0
Content-Type: application/json
{"request":"pois","geometry":{"bbox":[[8.8034,53.0756],[8.7834,53.0456]],"geojson":{"type":"Point","coordinates":[8.8034,53.0756]},"buffer":200}}
###
GET http://overpass-api.de/api/interpreter?data=[out:json][timeout:30];(way["building"](43.07807924321489, -75.337379059068,43.106975424409185, -75.2763059184843););out body;>;out skel qt;
###
GET http://overpass-api.de/api/interpreter?data=[out:json][timeout:30];node(43.07807924321489, -75.337379059068,43.106975424409185, -75.2763059184843);out meta;
###
GET https://api.openrouteservice.org/geocode/search?api_key=5b3ce3597851110001cf624827e9213ff2de4275a6a6152f7fb645f0&text=100 main,ut
###