|
- #!/bin/bash
- BASE_URL="http://localhost:1902"
-
- echo "1. Adding Tracker Zone Mapping..."
- curl -X POST "$BASE_URL/reslevis/postTrackerZone" \
- -H "Content-Type: application/json" \
- -d '{
- "id": "b6b2a2e4-58b3-4aa4-8d6a-4b55a2c5b2d2",
- "zoneList": ["0c7b9c7f-6d0f-4d4e-9e4a-2c9f2b1d6a11","1d2e3f40-1111-2222-3333-444455556666"],
- "tracker": "1e93b3fd-7d67-4a53-9c7a-0f0a8e7e41c6",
- "days": "All,Mon,Tue,Wed,Thu,Fri",
- "time": "09:00-17:00"
- }'
-
- sleep 1
-
- echo -e "\n\n2. Listing Trackers..."
- curl -X GET "$BASE_URL/reslevis/getTrackerZones"
-
- # sleep 1
-
- # echo "Updating Tracker Zone List and Time..."
- # curl -X PUT "$BASE_URL/reslevis/updateTrackerZone" \
- # -H "Content-Type: application/json" \
- # -d '{
- # "id": "tz_001",
- # "zoneList": ["zone_C"],
- # "tracker": "TAG_55",
- # "days": "Sat-Sun",
- # "time": "10:00-14:00"
- # }'
-
- # sleep 1
-
- # echo -e "\n\n2. Listing Trackers..."
- # curl -X GET "$BASE_URL/reslevis/getTrackerZones"
-
- # sleep 1
-
- # echo -e "\n\n3. Deleting Tracker Mapping..."
- # curl -X DELETE "$BASE_URL/reslevis/removeTrackerZone/tz_001"
-
- # sleep 1
-
- # echo -e "\n\n2. Listing Trackers..."
- # curl -X GET "$BASE_URL/reslevis/getTrackerZones"
|