초기 관제 시스템 뼈대 구성

This commit is contained in:
2026-06-06 14:58:54 +09:00
parent d982777718
commit cab7394b1f
29 changed files with 3221 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
param(
[string]$BaseUrl = "http://127.0.0.1:8080",
[string]$DeviceToken = "demo-token",
[string]$DriverId = "demo-driver",
[string]$VehicleNo = "SEOUL-12-3456",
[double]$Latitude = 37.5665,
[double]$Longitude = 126.9780
)
$ErrorActionPreference = "Stop"
$body = @{
driverId = $DriverId
vehicleNo = $VehicleNo
latitude = $Latitude
longitude = $Longitude
accuracy = 12
speed = 42
heading = 90
provider = "script"
recordedAt = (Get-Date).ToUniversalTime().ToString("o")
} | ConvertTo-Json
Invoke-RestMethod `
-Uri "$BaseUrl/api/v1/locations" `
-Method Post `
-Headers @{ "X-Device-Token" = $DeviceToken } `
-ContentType "application/json" `
-Body $body