Skip to content

Commit

Permalink
Task 23 : Add Postman Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapter1990 committed Sep 28, 2024
1 parent 7d3a520 commit e4d8449
Showing 1 changed file with 307 additions and 0 deletions.
307 changes: 307 additions & 0 deletions postman_collection/Migros Courier Tracking.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,307 @@
{
"info": {
"_postman_id": "0d886489-4ba6-4c24-ba78-95e8906920db",
"name": "Migros Courier Tracking",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "5570426"
},
"item": [
{
"name": "Log Courier Location Far Away Location Throws",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"lat\": 40.712776,\r\n \"lng\": -74.005974,\r\n \"timestamp\": \"28/09/2024 01:22\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/log-location",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"log-location"
]
}
},
"response": []
},
{
"name": "Log Courier Location First Location (Market 1) Timestamp Before Store's creation time Exception",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"lat\": 40.9923307, // Slightly adjusted to be within 100 meters\r\n \"lng\": 29.1244229, // Slightly adjusted to be within 100 meters\r\n \"timestamp\": \"28/09/2024 16:35\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/log-location",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"log-location"
]
}
},
"response": []
},
{
"name": "Log Courier Location First Location (Market 1)",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"lat\": 40.9923307, // Slightly adjusted to be within 100 meters\r\n \"lng\": 29.1244229, // Slightly adjusted to be within 100 meters\r\n \"timestamp\": \"28/09/2024 16:35\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/log-location",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"log-location"
]
}
},
"response": []
},
{
"name": "Log Courier Location Second Location (Market 2)",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"lat\": 40.986206, // Slightly adjusted to be within 100 meters\r\n \"lng\": 29.116143, // Slightly adjusted to be within 100 meters\r\n \"timestamp\": \"28/09/2024 16:43\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/log-location",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"log-location"
]
}
},
"response": []
},
{
"name": "Log Courier Location Third Location (Market 3)",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"lat\": 41.006700, // Slightly adjusted to be within 100 meters\r\n \"lng\": 28.655200, // Slightly adjusted to be within 100 meters\r\n \"timestamp\": \"28/09/2024 16:44\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/log-location",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"log-location"
]
}
},
"response": []
},
{
"name": "Log Courier Location Four Location (Market 4)",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"lat\": 41.055750, // Slightly adjusted to be within 100 meters\r\n \"lng\": 29.021050, // Slightly adjusted to be within 100 meters\r\n \"timestamp\": \"28/09/2024 16:45\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/log-location",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"log-location"
]
}
},
"response": []
},
{
"name": "Get Past Travels",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:1226/api/couriers/travels/:courierId",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"travels",
":courierId"
],
"variable": [
{
"key": "courierId",
"value": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
},
"response": []
},
{
"name": "Get Travels By Courier ID, Store Name, and Time Range",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"storeName\": \"Ataşehir MMM Migros\",\r\n \"start\": \"28/09/2024 16:42\",\r\n \"end\": \"28/09/2024 16:44\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/travels",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"travels"
]
}
},
"response": []
},
{
"name": "Get Travels By Courier ID, Store Name, and Time Range Timestamp Before Store Create Exception",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"courierId\": \"550e8400-e29b-41d4-a716-446655440000\",\r\n \"storeName\": \"Ataşehir MMM Migros\",\r\n \"start\": \"28/09/2024 01:30\",\r\n \"end\": \"28/09/2024 01:22\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1226/api/couriers/travels",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"travels"
]
}
},
"response": []
},
{
"name": "Get Total Travel Distance",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:1226/api/couriers/travels/:courierId/total-distance",
"protocol": "http",
"host": [
"localhost"
],
"port": "1226",
"path": [
"api",
"couriers",
"travels",
":courierId",
"total-distance"
],
"variable": [
{
"key": "courierId",
"value": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
},
"response": []
}
]
}

0 comments on commit e4d8449

Please sign in to comment.