#!/bin/bash # Test de l'endpoint device-info # Remplacez SESSION_ID par un ID de session valide SESSION_ID="YOUR_SESSION_ID_HERE" API_URL="http://localhost/api/users/device-info" curl -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $SESSION_ID" \ -d '{ "platform": "iOS", "device_model": "iPhone13,2", "device_name": "iPhone de Pierre", "device_manufacturer": "Apple", "device_identifier": "iPhone13,2", "device_ip_local": "192.168.1.42", "device_ip_public": "86.245.168.123", "device_wifi_name": "Bbox-A1B2C3", "device_wifi_bssid": "00:1A:2B:3C:4D:5E", "ios_version": "17.2.1", "device_nfc_capable": true, "device_supports_tap_to_pay": true, "battery_level": 85, "battery_charging": false, "battery_state": "discharging", "last_device_info_check": "2024-12-28T10:30:45.123Z", "app_version": "3.2.8", "app_build": "328" }' echo ""