Files
maps-saas/apps/dashboard/public/siro-maps.postman_collection.json
T

26 lines
1.5 KiB
JSON

{
"info": {
"name": "SIRO Maps API",
"description": "Safe starter collection for maps, search and geocoding. Set the collection variables before sending requests.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"auth": {
"type": "apikey",
"apikey": [
{ "key": "key", "value": "x-api-key", "type": "string" },
{ "key": "value", "value": "{{apiKey}}", "type": "string" },
{ "key": "in", "value": "header", "type": "string" }
]
},
"variable": [
{ "key": "baseUrl", "value": "http://localhost:3200/api", "type": "string" },
{ "key": "apiKey", "value": "YOUR_API_KEY", "type": "string" }
],
"item": [
{ "name": "Search places", "request": { "method": "GET", "header": [], "url": "{{baseUrl}}/geocoding/search?q=Amman&country=jordan", "description": "Forward geocoding and local place search." } },
{ "name": "Autocomplete", "request": { "method": "GET", "header": [], "url": "{{baseUrl}}/geocoding/autocomplete?q=Am&country=jordan", "description": "Fast suggestions for search-as-you-type experiences." } },
{ "name": "Reverse geocode", "request": { "method": "GET", "header": [], "url": "{{baseUrl}}/geocoding/reverse?lat=31.9539&lng=35.9106", "description": "Resolve coordinates to the closest available address." } },
{ "name": "Map style", "request": { "method": "GET", "header": [], "url": "{{baseUrl}}/maps/style.json?theme=obsidian", "description": "Load the MapLibre-compatible style document." } }
]
}