881 lines
54 KiB
JSON
881 lines
54 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "bce30528-f06b-4c85-9354-89f5e25063a4",
|
|
"name": "NOVA",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Get devices",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/dashboard/map/contract/devices?contract_id=1",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"dashboard",
|
|
"map",
|
|
"contract",
|
|
"devices"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "contract_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get devices",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/dashboard/map/contract/devices?contract_id=1",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"dashboard",
|
|
"map",
|
|
"contract",
|
|
"devices"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "contract_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Mon, 09 Oct 2023 06:09:21 GMT"
|
|
},
|
|
{
|
|
"key": "Transfer-Encoding",
|
|
"value": "chunked"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"id\": 5,\n \"createdAt\": \"2023-09-19T07:59:21.142717+02:00\",\n \"updatedAt\": \"2023-09-19T07:59:21.142717+02:00\",\n \"deviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0834\",\n \"deviceName\": \"\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"deviceConfiguration\": \"{\\n\\\"imei\\\": \\\"352656107000000\\\",\\n\\\"imsi\\\": \\\"232031721000000\\\",\\n\\\"timestamp\\\": 1643200311304,\\n\\\"epoch\\\": 1643200311304,\\n\\\"packetVersion\\\": 1,\\n\\\"hardwareVersion\\\": \\\"2.3\\\",\\n\\\"softwareVersion\\\": \\\"0.9.0\\\",\\n\\\"lat\\\": 34.232237643,\\n\\\"lon\\\": 7.9934428597,\\n\\\"wifiLat\\\": 34.232237643,\\n\\\"wifiLon\\\": 7.9934428597,\\n\\\"cellLat\\\": 34.232237643,\\n\\\"cellLon\\\": 7.9934428597,\\n\\\"provider\\\": \\\"tm_prv_sdq\\\",\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"tac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"location\\\": {\\n\\\"type\\\": \\\"Point\\\",\\n\\\"coordinates\\\": [34.232237643, 7.9934428597],\\n\\\"crs\\\": {\\n\\\"type\\\": \\\"name\\\",\\n\\\"properties\\\": {\\n\\\"name\\\": \\\"EPSG:4326\\\"\\n}\\n}\\n},\\n\\\"gpsData\\\": {\\n\\\"timestamp\\\": 1643201553,\\n\\\"timeToFix\\\": 0,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 7.9934428597,\\n\\\"altitude\\\": 142.8,\\n\\\"numberOfSats\\\": 4,\\n\\\"estimatedAccuracy\\\": 28.68,\\n\\\"pdop\\\": 6.29\\n},\\n\\\"wifiRecords\\\": {\\n\\\"timestamp\\\": 1643200308,\\n\\\"record\\\": [{\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 54\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 55\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 56\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 57\\n}],\\n\\\"latitude\\\": 72.23184167,\\n\\\"longitude\\\": 7.9847866\\n},\\n\\\"cellInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"cellTac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"psmXTauInfo\\\": 480,\\n\\\"psmDTauInfo\\\": 3240,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 7.9934428597\\n},\\n\\\"mode\\\": \\\"Moving\\\",\\n\\\"locationMethod\\\": \\\"w\\\",\\n\\\"ip\\\": \\\"10.196.152.105\\\",\\n\\\"port\\\": 2397,\\n\\\"stateInfo\\\": {\\n\\\"flightMode\\\": true,\\n\\\"motionTrigger\\\": true,\\n\\\"messageDoubling\\\": true,\\n\\\"t2Max\\\": 604800,\\n\\\"backOffTime\\\": 1800,\\n\\\"baseIdleTime\\\": 86400,\\n\\\"fmBackOffTime\\\": 15,\\n\\\"fmIdleTime\\\": 60,\\n\\\"idleSensitivity\\\": 200,\\n\\\"fmIdleSensitivity\\\": 50,\\n\\\"positionTypeActive\\\": 3,\\n\\\"positionTypeIdle\\\": 3\\n},\\n\\\"batteryMv\\\": 3720,\\n\\\"temperatureData\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"temperatureInCelsius\\\": -2\\n},\\n\\\"temperature\\\": -2,\\n\\\"deviceStatus\\\": {},\\n\\\"trigger\\\": 4,\\n\\\"triggerName\\\": \\\"Motion Stop\\\",\\n\\n\\\"cbor\\\":\\\"aa6170a361741a61f13ce761631901ac6172046176a3617001626877820203627377830009006164a461651b000140bd25ff96e461731b0000d3081858e3076163743839343\\\",\\n\\\"statsInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"modemOnTime\\\": 4916,\\n\\\"gpsOnTime\\\": 61388,\\n\\\"deviceUpTime\\\": 8555520,\\n\\\"resetCause\\\": 144\\n},\\n\\\"accelerometerInfo\\\": {\\n\\\"timestamp\\\": 1643200309,\\n\\\"numberOfSamples\\\": 10,\\n\\\"samplingDuration\\\": 3792,\\n\\\"X\\\": -937,\\n\\\"Y\\\": -4,\\n\\\"Z\\\": 0\\n},\\n\\\"counter\\\": 428,\\n\\\"deviceId\\\": \\\"9c51ef10-bf79-4556-8767-1de4bdda0834\\\"\\n}\",\n \"companyId\": 1,\n \"deviceInfos\": []\n },\n {\n \"id\": 6,\n \"createdAt\": \"2023-09-19T17:14:59.401891+02:00\",\n \"updatedAt\": \"2023-09-19T17:14:59.401891+02:00\",\n \"deviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0835\",\n \"deviceName\": \"\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"deviceConfiguration\": \"{\\n\\\"imei\\\": \\\"352656107000000\\\",\\n\\\"imsi\\\": \\\"232031721000000\\\",\\n\\\"timestamp\\\": 1643200311304,\\n\\\"epoch\\\": 1643200311304,\\n\\\"packetVersion\\\": 1,\\n\\\"hardwareVersion\\\": \\\"2.3\\\",\\n\\\"softwareVersion\\\": \\\"0.9.0\\\",\\n\\\"lat\\\": 34.232237643,\\n\\\"lon\\\": 7.9934428597,\\n\\\"wifiLat\\\": 34.232237643,\\n\\\"wifiLon\\\": 7.9934428597,\\n\\\"cellLat\\\": 34.232237643,\\n\\\"cellLon\\\": 7.9934428597,\\n\\\"provider\\\": \\\"tm_prv_sdq\\\",\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"tac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"location\\\": {\\n\\\"type\\\": \\\"Point\\\",\\n\\\"coordinates\\\": [34.232237643, 7.9934428597],\\n\\\"crs\\\": {\\n\\\"type\\\": \\\"name\\\",\\n\\\"properties\\\": {\\n\\\"name\\\": \\\"EPSG:4326\\\"\\n}\\n}\\n},\\n\\\"gpsData\\\": {\\n\\\"timestamp\\\": 1643201553,\\n\\\"timeToFix\\\": 0,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 7.9934428597,\\n\\\"altitude\\\": 142.8,\\n\\\"numberOfSats\\\": 4,\\n\\\"estimatedAccuracy\\\": 28.68,\\n\\\"pdop\\\": 6.29\\n},\\n\\\"wifiRecords\\\": {\\n\\\"timestamp\\\": 1643200308,\\n\\\"record\\\": [{\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 54\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 55\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 56\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 57\\n}],\\n\\\"latitude\\\": 72.23184167,\\n\\\"longitude\\\": 7.9847866\\n},\\n\\\"cellInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"cellTac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"psmXTauInfo\\\": 480,\\n\\\"psmDTauInfo\\\": 3240,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 7.9934428597\\n},\\n\\\"mode\\\": \\\"Moving\\\",\\n\\\"locationMethod\\\": \\\"w\\\",\\n\\\"ip\\\": \\\"10.196.152.105\\\",\\n\\\"port\\\": 2397,\\n\\\"stateInfo\\\": {\\n\\\"flightMode\\\": true,\\n\\\"motionTrigger\\\": true,\\n\\\"messageDoubling\\\": true,\\n\\\"t2Max\\\": 604800,\\n\\\"backOffTime\\\": 1800,\\n\\\"baseIdleTime\\\": 86400,\\n\\\"fmBackOffTime\\\": 15,\\n\\\"fmIdleTime\\\": 60,\\n\\\"idleSensitivity\\\": 200,\\n\\\"fmIdleSensitivity\\\": 50,\\n\\\"positionTypeActive\\\": 3,\\n\\\"positionTypeIdle\\\": 3\\n},\\n\\\"batteryMv\\\": 3720,\\n\\\"temperatureData\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"temperatureInCelsius\\\": -2\\n},\\n\\\"temperature\\\": -2,\\n\\\"deviceStatus\\\": {},\\n\\\"trigger\\\": 4,\\n\\\"triggerName\\\": \\\"Motion Stop\\\",\\n\\n\\\"cbor\\\":\\\"aa6170a361741a61f13ce761631901ac6172046176a3617001626877820203627377830009006164a461651b000140bd25ff96e461731b0000d3081858e3076163743839343\\\",\\n\\\"statsInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"modemOnTime\\\": 4916,\\n\\\"gpsOnTime\\\": 61388,\\n\\\"deviceUpTime\\\": 8555520,\\n\\\"resetCause\\\": 144\\n},\\n\\\"accelerometerInfo\\\": {\\n\\\"timestamp\\\": 1643200309,\\n\\\"numberOfSamples\\\": 10,\\n\\\"samplingDuration\\\": 3792,\\n\\\"X\\\": -937,\\n\\\"Y\\\": -4,\\n\\\"Z\\\": 0\\n},\\n\\\"counter\\\": 428,\\n\\\"deviceId\\\": \\\"9c51ef10-bf79-4556-8767-1de4bdda0835\\\"\\n}\",\n \"companyId\": 1,\n \"deviceInfos\": []\n },\n {\n \"id\": 7,\n \"createdAt\": \"2023-09-19T17:15:04.531334+02:00\",\n \"updatedAt\": \"2023-09-19T17:15:04.531334+02:00\",\n \"deviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0836\",\n \"deviceName\": \"\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"deviceConfiguration\": \"{\\n\\\"imei\\\": \\\"352656107000000\\\",\\n\\\"imsi\\\": \\\"232031721000000\\\",\\n\\\"timestamp\\\": 1643200311304,\\n\\\"epoch\\\": 1643200311304,\\n\\\"packetVersion\\\": 1,\\n\\\"hardwareVersion\\\": \\\"2.3\\\",\\n\\\"softwareVersion\\\": \\\"0.9.0\\\",\\n\\\"lat\\\": 34.232237643,\\n\\\"lon\\\": 7.9934428597,\\n\\\"wifiLat\\\": 34.232237643,\\n\\\"wifiLon\\\": 7.9934428597,\\n\\\"cellLat\\\": 34.232237643,\\n\\\"cellLon\\\": 7.9934428597,\\n\\\"provider\\\": \\\"tm_prv_sdq\\\",\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"tac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"location\\\": {\\n\\\"type\\\": \\\"Point\\\",\\n\\\"coordinates\\\": [34.232237643, 7.9934428597],\\n\\\"crs\\\": {\\n\\\"type\\\": \\\"name\\\",\\n\\\"properties\\\": {\\n\\\"name\\\": \\\"EPSG:4326\\\"\\n}\\n}\\n},\\n\\\"gpsData\\\": {\\n\\\"timestamp\\\": 1643201553,\\n\\\"timeToFix\\\": 0,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 7.9934428597,\\n\\\"altitude\\\": 142.8,\\n\\\"numberOfSats\\\": 4,\\n\\\"estimatedAccuracy\\\": 28.68,\\n\\\"pdop\\\": 6.29\\n},\\n\\\"wifiRecords\\\": {\\n\\\"timestamp\\\": 1643200308,\\n\\\"record\\\": [{\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 54\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 55\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 56\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 57\\n}],\\n\\\"latitude\\\": 72.23184167,\\n\\\"longitude\\\": 7.9847866\\n},\\n\\\"cellInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"cellTac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"psmXTauInfo\\\": 480,\\n\\\"psmDTauInfo\\\": 3240,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 7.9934428597\\n},\\n\\\"mode\\\": \\\"Moving\\\",\\n\\\"locationMethod\\\": \\\"w\\\",\\n\\\"ip\\\": \\\"10.196.152.105\\\",\\n\\\"port\\\": 2397,\\n\\\"stateInfo\\\": {\\n\\\"flightMode\\\": true,\\n\\\"motionTrigger\\\": true,\\n\\\"messageDoubling\\\": true,\\n\\\"t2Max\\\": 604800,\\n\\\"backOffTime\\\": 1800,\\n\\\"baseIdleTime\\\": 86400,\\n\\\"fmBackOffTime\\\": 15,\\n\\\"fmIdleTime\\\": 60,\\n\\\"idleSensitivity\\\": 200,\\n\\\"fmIdleSensitivity\\\": 50,\\n\\\"positionTypeActive\\\": 3,\\n\\\"positionTypeIdle\\\": 3\\n},\\n\\\"batteryMv\\\": 3720,\\n\\\"temperatureData\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"temperatureInCelsius\\\": -2\\n},\\n\\\"temperature\\\": -2,\\n\\\"deviceStatus\\\": {},\\n\\\"trigger\\\": 4,\\n\\\"triggerName\\\": \\\"Motion Stop\\\",\\n\\n\\\"cbor\\\":\\\"aa6170a361741a61f13ce761631901ac6172046176a3617001626877820203627377830009006164a461651b000140bd25ff96e461731b0000d3081858e3076163743839343\\\",\\n\\\"statsInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"modemOnTime\\\": 4916,\\n\\\"gpsOnTime\\\": 61388,\\n\\\"deviceUpTime\\\": 8555520,\\n\\\"resetCause\\\": 144\\n},\\n\\\"accelerometerInfo\\\": {\\n\\\"timestamp\\\": 1643200309,\\n\\\"numberOfSamples\\\": 10,\\n\\\"samplingDuration\\\": 3792,\\n\\\"X\\\": -937,\\n\\\"Y\\\": -4,\\n\\\"Z\\\": 0\\n},\\n\\\"counter\\\": 428,\\n\\\"deviceId\\\": \\\"9c51ef10-bf79-4556-8767-1de4bdda0836\\\"\\n}\",\n \"companyId\": 1,\n \"deviceInfos\": []\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Dashboar Map Contracts",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/dashboard/map/contracts?offset=0&limit=20&status=active",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"dashboard",
|
|
"map",
|
|
"contracts"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "offset",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"key": "limit",
|
|
"value": "20"
|
|
},
|
|
{
|
|
"key": "status",
|
|
"value": "active"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get Dashboar Map Contracts",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/dashboard/map/contracts?offset=0&limit=20&status=active",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"dashboard",
|
|
"map",
|
|
"contracts"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "offset",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"key": "limit",
|
|
"value": "20"
|
|
},
|
|
{
|
|
"key": "status",
|
|
"value": "active"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:27:27 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "1691"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"id\": 1,\n \"createdAt\": \"2023-09-13T08:36:41.742294+02:00\",\n \"updatedAt\": \"2023-09-13T08:36:41.742294+02:00\",\n \"name\": \"Contract1\",\n \"deviceIds\": [\n 5,\n 6,\n 7\n ],\n \"buyerId\": 1,\n \"sellerId\": 0,\n \"description\": \"\",\n \"startLat\": 0,\n \"startLon\": 0,\n \"endLat\": 0,\n \"endLon\": 0,\n \"startTime\": \"2023-09-13T08:36:41.742294+02:00\",\n \"endTime\": \"2023-09-20T08:36:41.742294+02:00\",\n \"status\": \"active\",\n \"blockchainId\": \"12\",\n \"contractInfos\": null,\n \"productId\": 0,\n \"maxTemp\": 0,\n \"minTemp\": 0,\n \"arrivalDate\": \"0001-01-01T00:00:00Z\",\n \"penaltyType\": \"\",\n \"penaltyValue\": 0,\n \"penaltyRec\": \"\",\n \"buyerName\": \"Nova kompanija\",\n \"numberOfDevices\": 3\n },\n {\n \"id\": 3,\n \"createdAt\": \"2023-09-13T08:36:41.742294+02:00\",\n \"updatedAt\": \"2023-09-13T08:36:41.742294+02:00\",\n \"name\": \"Contract2\",\n \"deviceIds\": [\n 1,\n 2,\n 3,\n 4\n ],\n \"buyerId\": 1,\n \"sellerId\": 0,\n \"description\": \"\",\n \"startLat\": 0,\n \"startLon\": 0,\n \"endLat\": 0,\n \"endLon\": 0,\n \"startTime\": \"2023-09-13T08:36:41.742294+02:00\",\n \"endTime\": \"2023-11-20T07:36:41.742294+01:00\",\n \"status\": \"active\",\n \"blockchainId\": \"\",\n \"contractInfos\": null,\n \"productId\": 0,\n \"maxTemp\": 0,\n \"minTemp\": 0,\n \"arrivalDate\": \"0001-01-01T00:00:00Z\",\n \"penaltyType\": \"\",\n \"penaltyValue\": 0,\n \"penaltyRec\": \"\",\n \"buyerName\": \"Nova kompanija\",\n \"numberOfDevices\": 4\n },\n {\n \"id\": 4,\n \"createdAt\": \"2023-09-13T08:36:41.742294+02:00\",\n \"updatedAt\": \"2023-09-13T08:36:41.742294+02:00\",\n \"name\": \"Contract2\",\n \"deviceIds\": [\n 1,\n 2,\n 3,\n 4\n ],\n \"buyerId\": 1,\n \"sellerId\": 0,\n \"description\": \"\",\n \"startLat\": 0,\n \"startLon\": 0,\n \"endLat\": 0,\n \"endLon\": 0,\n \"startTime\": \"2023-09-13T08:36:41.742294+02:00\",\n \"endTime\": \"2023-11-20T07:36:41.742294+01:00\",\n \"status\": \"active\",\n \"blockchainId\": \"\",\n \"contractInfos\": null,\n \"productId\": 0,\n \"maxTemp\": 0,\n \"minTemp\": 0,\n \"arrivalDate\": \"0001-01-01T00:00:00Z\",\n \"penaltyType\": \"\",\n \"penaltyValue\": 0,\n \"penaltyRec\": \"\",\n \"buyerName\": \"Nova kompanija\",\n \"numberOfDevices\": 4\n }\n ],\n \"total\": 3\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Contracts for Buyers",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/contracts",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"contracts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get Contracts for Buyers",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/contracts",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"contracts"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:27:52 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "1056"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"status\": {\n \"key\": \"Unknown\",\n \"value\": \"unknown\"\n },\n \"buyer\": {\n \"id\": 2,\n \"name\": \"Nova kompanija\"\n },\n \"contractID\": 7,\n \"numberOfDevices\": 0,\n \"dateCreated\": \"2023-10-06T08:36:23.752245+02:00\"\n },\n {\n \"status\": {\n \"key\": \"Unknown\",\n \"value\": \"unknown\"\n },\n \"buyer\": {\n \"id\": 2,\n \"name\": \"Nova kompanija\"\n },\n \"contractID\": 6,\n \"numberOfDevices\": 0,\n \"dateCreated\": \"2023-10-06T08:25:40.488392+02:00\"\n },\n {\n \"status\": {\n \"key\": \"Active\",\n \"value\": \"active\"\n },\n \"buyer\": {\n \"id\": 1,\n \"name\": \"Nova kompanija\"\n },\n \"contractID\": 1,\n \"numberOfDevices\": 3,\n \"dateCreated\": \"2023-09-13T08:36:41.742294+02:00\"\n },\n {\n \"status\": {\n \"key\": \"Pending signature\",\n \"value\": \"pending\"\n },\n \"buyer\": {\n \"id\": 1,\n \"name\": \"Nova kompanija\"\n },\n \"contractID\": 2,\n \"numberOfDevices\": 1,\n \"dateCreated\": \"2023-09-13T08:36:41.742294+02:00\"\n },\n {\n \"status\": {\n \"key\": \"Active\",\n \"value\": \"active\"\n },\n \"buyer\": {\n \"id\": 1,\n \"name\": \"Nova kompanija\"\n },\n \"contractID\": 3,\n \"numberOfDevices\": 4,\n \"dateCreated\": \"2023-09-13T08:36:41.742294+02:00\"\n },\n {\n \"status\": {\n \"key\": \"Active\",\n \"value\": \"active\"\n },\n \"buyer\": {\n \"id\": 1,\n \"name\": \"Nova kompanija\"\n },\n \"contractID\": 4,\n \"numberOfDevices\": 4,\n \"dateCreated\": \"2023-09-13T08:36:41.742294+02:00\"\n }\n ],\n \"total\": 6\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "GetContractStatuses",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/contracts/statuses",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"contracts",
|
|
"statuses"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "GetContractStatuses",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/contracts/statuses",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"contracts",
|
|
"statuses"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:28:42 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "292"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"key\": \"active\",\n \"value\": \"Active\"\n },\n {\n \"key\": \"pending\",\n \"value\": \"Pending signature\"\n },\n {\n \"key\": \"draft\",\n \"value\": \"Draft\"\n },\n {\n \"key\": \"signed\",\n \"value\": \"Signed\"\n },\n {\n \"key\": \"ready_for_activation\",\n \"value\": \"Ready for Activation\"\n },\n {\n \"key\": \"executed\",\n \"value\": \"Executed\"\n },\n {\n \"key\": \"revoked\",\n \"value\": \"Revoked\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get device info",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/dashboard/map/device_data?device_id=5&contract_id=1",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"dashboard",
|
|
"map",
|
|
"device_data"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "device_id",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"key": "contract_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get device info",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/dashboard/map/device_data?device_id=5&contract_id=1",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"dashboard",
|
|
"map",
|
|
"device_data"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "device_id",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"key": "contract_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:39:46 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "1745"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 7.9934428597,\n 34.232237643\n ]\n },\n \"deviceInfo\": {\n \"id\": 51,\n \"createdAt\": \"2023-09-19T08:19:01.689368+02:00\",\n \"updatedAt\": \"2023-09-19T08:19:01.689368+02:00\",\n \"rawJson\": \"\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"timestamp\": 1643200311304,\n \"lat\": 34.232237643,\n \"lon\": 7.9934428597,\n \"wifiLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"cellLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"temperature\": -2,\n \"accelerometerInfo\": {\n \"x\": 0,\n \"y\": 0,\n \"z\": 0\n },\n \"x\": -937,\n \"y\": -4,\n \"z\": 0,\n \"deviceId\": 5,\n \"externalDeviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0834\"\n },\n \"properties\": {}\n },\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 7.9934428597,\n 34.232237643\n ]\n },\n \"deviceInfo\": {\n \"id\": 51,\n \"createdAt\": \"2023-09-19T08:19:01.689368+02:00\",\n \"updatedAt\": \"2023-09-19T08:19:01.689368+02:00\",\n \"rawJson\": \"\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"timestamp\": 1643200311304,\n \"lat\": 34.232237643,\n \"lon\": 7.9934428597,\n \"wifiLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"cellLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"temperature\": -2,\n \"accelerometerInfo\": {\n \"x\": 0,\n \"y\": 0,\n \"z\": 0\n },\n \"x\": -937,\n \"y\": -4,\n \"z\": 0,\n \"deviceId\": 5,\n \"externalDeviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0834\"\n },\n \"properties\": {}\n },\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 7.9934428597,\n 34.232237643\n ]\n },\n \"deviceInfo\": {\n \"id\": 51,\n \"createdAt\": \"2023-09-19T08:19:01.689368+02:00\",\n \"updatedAt\": \"2023-09-19T08:19:01.689368+02:00\",\n \"rawJson\": \"\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"timestamp\": 1643200311304,\n \"lat\": 34.232237643,\n \"lon\": 7.9934428597,\n \"wifiLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"cellLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"temperature\": -2,\n \"accelerometerInfo\": {\n \"x\": 0,\n \"y\": 0,\n \"z\": 0\n },\n \"x\": -937,\n \"y\": -4,\n \"z\": 0,\n \"deviceId\": 5,\n \"externalDeviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0834\"\n },\n \"properties\": {}\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Invoices",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/invoices?limit=5&offset=0&sort_by=invoice_date&sort_order=desc&buyer_name=Some",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"invoices"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"key": "offset",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"key": "sort_by",
|
|
"value": "invoice_date"
|
|
},
|
|
{
|
|
"key": "sort_order",
|
|
"value": "desc"
|
|
},
|
|
{
|
|
"key": "buyer_name",
|
|
"value": "Some"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get Invoices",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/invoices?limit=5&offset=0&sort_by=invoice_date&sort_order=desc&buyer_name=Some",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"invoices"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"key": "offset",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"key": "sort_by",
|
|
"value": "invoice_date"
|
|
},
|
|
{
|
|
"key": "sort_order",
|
|
"value": "desc"
|
|
},
|
|
{
|
|
"key": "buyer_name",
|
|
"value": "Some"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:39:58 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "446"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"status\": {\n \"key\": \"Invoice issued\",\n \"value\": \"invoice_issued\"\n },\n \"buyer\": {\n \"id\": 1,\n \"name\": \"Some Buyer\"\n },\n \"contractId\": 1,\n \"dateCreated\": \"2023-09-13T08:36:41.742294+02:00\",\n \"dueDate\": \"2023-09-13T08:36:41.742294+02:00\",\n \"amount\": \"0\"\n },\n {\n \"status\": {\n \"key\": \"Unknown\",\n \"value\": \"unknown\"\n },\n \"buyer\": {\n \"id\": 1,\n \"name\": \"Some Buyer\"\n },\n \"contractId\": 3,\n \"dateCreated\": \"2023-09-13T08:36:41.742294+02:00\",\n \"dueDate\": \"2023-09-13T08:36:41.742294+02:00\",\n \"amount\": \"0\"\n }\n ],\n \"total\": 2\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Invoice details",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/invoice/1",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"invoice",
|
|
"1"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get Invoice details",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/invoice/1",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"invoice",
|
|
"1"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:40:02 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "589"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"id\": 0,\n \"createdAt\": \"0001-01-01T00:00:00Z\",\n \"updatedAt\": \"0001-01-01T00:00:00Z\",\n \"deletedAt\": {\n \"Time\": \"0001-01-01T00:00:00Z\",\n \"Valid\": false\n },\n \"buyerId\": 1,\n \"buyerName\": \"Some Buyer\",\n \"buyerAddress\": \"\",\n \"buyerEmail\": \"\",\n \"buyerPhone\": \"\",\n \"sellerId\": 1,\n \"sellerName\": \"This name\",\n \"sellerAddress\": \"addre\",\n \"sellerEmail\": \"ds@fdf\",\n \"sellerPhone\": \"3434\",\n \"priceCents\": 0,\n \"discount\": 19,\n \"tax\": 12,\n \"termsAndConditions\": \"Ter\",\n \"invoiceName\": \"New invo\",\n \"invoiceDate\": \"2023-09-13T08:36:41.742294+02:00\",\n \"invoiceDueDate\": \"2023-09-13T08:36:41.742294+02:00\",\n \"contractId\": 1,\n \"invoiceItem\": null,\n \"status\": \"invoice_issued\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Notifications",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/notifications?user_id=1&time=1656192796",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"notifications"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "user_id",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "time",
|
|
"value": "1656192796"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Get Notifications",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{URL}}/notifications?user_id=1&time=1656192796",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"notifications"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "user_id",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "time",
|
|
"value": "1656192796"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Mon, 16 Oct 2023 11:10:37 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "554"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"type\": \"warning\",\n \"title\": \"Contract 4587347502\",\n \"message\": \"Temperature anomaly detected\",\n \"datetime\": \"2023-09-13T08:36:41.742294+02:00\"\n },\n {\n \"type\": \"warning\",\n \"title\": \"Contract 4587347502\",\n \"message\": \"Temperature anomaly detected\",\n \"datetime\": \"2023-09-13T08:36:41.742294+02:00\"\n },\n {\n \"type\": \"warning\",\n \"title\": \"Contract 4587347502\",\n \"message\": \"Temperature anomaly detected\",\n \"datetime\": \"2023-09-13T08:36:41.742294+02:00\"\n },\n {\n \"type\": \"warning\",\n \"title\": \"Contract 4587347502\",\n \"message\": \"Temperature anomaly detected\",\n \"datetime\": \"2022-09-13T08:36:41.742294+02:00\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Save device info",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\"imei\": \"352656107000000\",\n\"imsi\": \"232031721000000\",\n\"timestamp\": 1643200311304,\n\"epoch\": 1643200311304,\n\"packetVersion\": 1,\n\"hardwareVersion\": \"2.3\",\n\"softwareVersion\": \"0.9.0\",\n\"lat\": 34.232237643,\n\"lon\": 8.1074428597,\n\"wifiLat\": 34.232237643,\n\"wifiLon\": 7.9934428597,\n\"cellLat\": 34.232237643,\n\"cellLon\": 7.9934428597,\n\"provider\": \"tm_prv_sdq\",\n\"mcc\": 204,\n\"mnc\": 4,\n\"rat\": 9,\n\"band\": 20,\n\"earfcn\": 6254,\n\"tac\": 10113,\n\"cellId\": 27454823,\n\"physicalId\": 389,\n\"rsrp\": 24,\n\"rsrq\": 25,\n\"snr\": 31,\n\"ceLevel\": 0,\n\"location\": {\n\"type\": \"Point\",\n\"coordinates\": [34.232237643, 8.1074428597],\n\"crs\": {\n\"type\": \"name\",\n\"properties\": {\n\"name\": \"EPSG:4326\"\n}\n}\n},\n\"gpsData\": {\n\"timestamp\": 1643201553,\n\"timeToFix\": 0,\n\"latitude\": 34.232237643,\n\"longitude\": 8.1074428597,\n\"altitude\": 142.8,\n\"numberOfSats\": 4,\n\"estimatedAccuracy\": 28.68,\n\"pdop\": 6.29\n},\n\"wifiRecords\": {\n\"timestamp\": 1643200308,\n\"record\": [{\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 54\n}, {\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 55\n}, {\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 56\n}, {\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 57\n}],\n\"latitude\": 72.23184167,\n\"longitude\": 8.1064428597\n},\n\"cellInfo\": {\n\"timestamp\": 1643200305,\n\"mcc\": 204,\n\"mnc\": 4,\n\"rat\": 9,\n\"band\": 20,\n\"earfcn\": 6254,\n\"cellTac\": 10113,\n\"cellId\": 27454823,\n\"physicalId\": 389,\n\"rsrp\": 24,\n\"rsrq\": 25,\n\"snr\": 31,\n\"ceLevel\": 0,\n\"psmXTauInfo\": 480,\n\"psmDTauInfo\": 3240,\n\"latitude\": 34.232237643,\n\"longitude\": 8.1074428597\n},\n\"mode\": \"Moving\",\n\"locationMethod\": \"w\",\n\"ip\": \"10.196.152.105\",\n\"port\": 2397,\n\"stateInfo\": {\n\"flightMode\": true,\n\"motionTrigger\": true,\n\"messageDoubling\": true,\n\"t2Max\": 604800,\n\"backOffTime\": 1800,\n\"baseIdleTime\": 86400,\n\"fmBackOffTime\": 15,\n\"fmIdleTime\": 60,\n\"idleSensitivity\": 200,\n\"fmIdleSensitivity\": 50,\n\"positionTypeActive\": 3,\n\"positionTypeIdle\": 3\n},\n\"batteryMv\": 3720,\n\"temperatureData\": {\n\"timestamp\": 1643200305,\n\"temperatureInCelsius\": -2\n},\n\"temperature\": -2,\n\"deviceStatus\": {},\n\"trigger\": 4,\n\"triggerName\": \"Motion Stop\",\n\n\"cbor\":\"aa6170a361741a61f13ce761631901ac6172046176a3617001626877820203627377830009006164a461651b000140bd25ff96e461731b0000d3081858e3076163743839343\",\n\"statsInfo\": {\n\"timestamp\": 1643200305,\n\"modemOnTime\": 4916,\n\"gpsOnTime\": 61388,\n\"deviceUpTime\": 8555520,\n\"resetCause\": 144\n},\n\"accelerometerInfo\": {\n\"timestamp\": 1643200309,\n\"numberOfSamples\": 10,\n\"samplingDuration\": 3792,\n\"X\": -937,\n\"Y\": -4,\n\"Z\": 0\n},\n\"counter\": 428,\n\"deviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0836\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{URL}}/device_data/save",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"device_data",
|
|
"save"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Save device info",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\"imei\": \"352656107000000\",\n\"imsi\": \"232031721000000\",\n\"timestamp\": 1643200311304,\n\"epoch\": 1643200311304,\n\"packetVersion\": 1,\n\"hardwareVersion\": \"2.3\",\n\"softwareVersion\": \"0.9.0\",\n\"lat\": 34.232237643,\n\"lon\": 8.1074428597,\n\"wifiLat\": 34.232237643,\n\"wifiLon\": 7.9934428597,\n\"cellLat\": 34.232237643,\n\"cellLon\": 7.9934428597,\n\"provider\": \"tm_prv_sdq\",\n\"mcc\": 204,\n\"mnc\": 4,\n\"rat\": 9,\n\"band\": 20,\n\"earfcn\": 6254,\n\"tac\": 10113,\n\"cellId\": 27454823,\n\"physicalId\": 389,\n\"rsrp\": 24,\n\"rsrq\": 25,\n\"snr\": 31,\n\"ceLevel\": 0,\n\"location\": {\n\"type\": \"Point\",\n\"coordinates\": [34.232237643, 8.1074428597],\n\"crs\": {\n\"type\": \"name\",\n\"properties\": {\n\"name\": \"EPSG:4326\"\n}\n}\n},\n\"gpsData\": {\n\"timestamp\": 1643201553,\n\"timeToFix\": 0,\n\"latitude\": 34.232237643,\n\"longitude\": 8.1074428597,\n\"altitude\": 142.8,\n\"numberOfSats\": 4,\n\"estimatedAccuracy\": 28.68,\n\"pdop\": 6.29\n},\n\"wifiRecords\": {\n\"timestamp\": 1643200308,\n\"record\": [{\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 54\n}, {\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 55\n}, {\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 56\n}, {\n\"macAddress\": \"00:01:02:03:04:05\",\n\"rssi\": 57\n}],\n\"latitude\": 72.23184167,\n\"longitude\": 8.1064428597\n},\n\"cellInfo\": {\n\"timestamp\": 1643200305,\n\"mcc\": 204,\n\"mnc\": 4,\n\"rat\": 9,\n\"band\": 20,\n\"earfcn\": 6254,\n\"cellTac\": 10113,\n\"cellId\": 27454823,\n\"physicalId\": 389,\n\"rsrp\": 24,\n\"rsrq\": 25,\n\"snr\": 31,\n\"ceLevel\": 0,\n\"psmXTauInfo\": 480,\n\"psmDTauInfo\": 3240,\n\"latitude\": 34.232237643,\n\"longitude\": 8.1074428597\n},\n\"mode\": \"Moving\",\n\"locationMethod\": \"w\",\n\"ip\": \"10.196.152.105\",\n\"port\": 2397,\n\"stateInfo\": {\n\"flightMode\": true,\n\"motionTrigger\": true,\n\"messageDoubling\": true,\n\"t2Max\": 604800,\n\"backOffTime\": 1800,\n\"baseIdleTime\": 86400,\n\"fmBackOffTime\": 15,\n\"fmIdleTime\": 60,\n\"idleSensitivity\": 200,\n\"fmIdleSensitivity\": 50,\n\"positionTypeActive\": 3,\n\"positionTypeIdle\": 3\n},\n\"batteryMv\": 3720,\n\"temperatureData\": {\n\"timestamp\": 1643200305,\n\"temperatureInCelsius\": -2\n},\n\"temperature\": -2,\n\"deviceStatus\": {},\n\"trigger\": 4,\n\"triggerName\": \"Motion Stop\",\n\n\"cbor\":\"aa6170a361741a61f13ce761631901ac6172046176a3617001626877820203627377830009006164a461651b000140bd25ff96e461731b0000d3081858e3076163743839343\",\n\"statsInfo\": {\n\"timestamp\": 1643200305,\n\"modemOnTime\": 4916,\n\"gpsOnTime\": 61388,\n\"deviceUpTime\": 8555520,\n\"resetCause\": 144\n},\n\"accelerometerInfo\": {\n\"timestamp\": 1643200309,\n\"numberOfSamples\": 10,\n\"samplingDuration\": 3792,\n\"X\": -937,\n\"Y\": -4,\n\"Z\": 0\n},\n\"counter\": 428,\n\"deviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0836\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{URL}}/device_data/save",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"device_data",
|
|
"save"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:39:05 GMT"
|
|
},
|
|
{
|
|
"key": "Transfer-Encoding",
|
|
"value": "chunked"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": {\n \"ID\": 58,\n \"CreatedAt\": \"2023-10-06T10:39:05.696554685+02:00\",\n \"UpdatedAt\": \"2023-10-06T10:39:05.696554685+02:00\",\n \"DeletedAt\": null,\n \"raw_json\": \"{\\n\\\"imei\\\": \\\"352656107000000\\\",\\n\\\"imsi\\\": \\\"232031721000000\\\",\\n\\\"timestamp\\\": 1643200311304,\\n\\\"epoch\\\": 1643200311304,\\n\\\"packetVersion\\\": 1,\\n\\\"hardwareVersion\\\": \\\"2.3\\\",\\n\\\"softwareVersion\\\": \\\"0.9.0\\\",\\n\\\"lat\\\": 34.232237643,\\n\\\"lon\\\": 8.1074428597,\\n\\\"wifiLat\\\": 34.232237643,\\n\\\"wifiLon\\\": 7.9934428597,\\n\\\"cellLat\\\": 34.232237643,\\n\\\"cellLon\\\": 7.9934428597,\\n\\\"provider\\\": \\\"tm_prv_sdq\\\",\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"tac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"location\\\": {\\n\\\"type\\\": \\\"Point\\\",\\n\\\"coordinates\\\": [34.232237643, 8.1074428597],\\n\\\"crs\\\": {\\n\\\"type\\\": \\\"name\\\",\\n\\\"properties\\\": {\\n\\\"name\\\": \\\"EPSG:4326\\\"\\n}\\n}\\n},\\n\\\"gpsData\\\": {\\n\\\"timestamp\\\": 1643201553,\\n\\\"timeToFix\\\": 0,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 8.1074428597,\\n\\\"altitude\\\": 142.8,\\n\\\"numberOfSats\\\": 4,\\n\\\"estimatedAccuracy\\\": 28.68,\\n\\\"pdop\\\": 6.29\\n},\\n\\\"wifiRecords\\\": {\\n\\\"timestamp\\\": 1643200308,\\n\\\"record\\\": [{\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 54\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 55\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 56\\n}, {\\n\\\"macAddress\\\": \\\"00:01:02:03:04:05\\\",\\n\\\"rssi\\\": 57\\n}],\\n\\\"latitude\\\": 72.23184167,\\n\\\"longitude\\\": 8.1064428597\\n},\\n\\\"cellInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"mcc\\\": 204,\\n\\\"mnc\\\": 4,\\n\\\"rat\\\": 9,\\n\\\"band\\\": 20,\\n\\\"earfcn\\\": 6254,\\n\\\"cellTac\\\": 10113,\\n\\\"cellId\\\": 27454823,\\n\\\"physicalId\\\": 389,\\n\\\"rsrp\\\": 24,\\n\\\"rsrq\\\": 25,\\n\\\"snr\\\": 31,\\n\\\"ceLevel\\\": 0,\\n\\\"psmXTauInfo\\\": 480,\\n\\\"psmDTauInfo\\\": 3240,\\n\\\"latitude\\\": 34.232237643,\\n\\\"longitude\\\": 8.1074428597\\n},\\n\\\"mode\\\": \\\"Moving\\\",\\n\\\"locationMethod\\\": \\\"w\\\",\\n\\\"ip\\\": \\\"10.196.152.105\\\",\\n\\\"port\\\": 2397,\\n\\\"stateInfo\\\": {\\n\\\"flightMode\\\": true,\\n\\\"motionTrigger\\\": true,\\n\\\"messageDoubling\\\": true,\\n\\\"t2Max\\\": 604800,\\n\\\"backOffTime\\\": 1800,\\n\\\"baseIdleTime\\\": 86400,\\n\\\"fmBackOffTime\\\": 15,\\n\\\"fmIdleTime\\\": 60,\\n\\\"idleSensitivity\\\": 200,\\n\\\"fmIdleSensitivity\\\": 50,\\n\\\"positionTypeActive\\\": 3,\\n\\\"positionTypeIdle\\\": 3\\n},\\n\\\"batteryMv\\\": 3720,\\n\\\"temperatureData\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"temperatureInCelsius\\\": -2\\n},\\n\\\"temperature\\\": -2,\\n\\\"deviceStatus\\\": {},\\n\\\"trigger\\\": 4,\\n\\\"triggerName\\\": \\\"Motion Stop\\\",\\n\\n\\\"cbor\\\":\\\"aa6170a361741a61f13ce761631901ac6172046176a3617001626877820203627377830009006164a461651b000140bd25ff96e461731b0000d3081858e3076163743839343\\\",\\n\\\"statsInfo\\\": {\\n\\\"timestamp\\\": 1643200305,\\n\\\"modemOnTime\\\": 4916,\\n\\\"gpsOnTime\\\": 61388,\\n\\\"deviceUpTime\\\": 8555520,\\n\\\"resetCause\\\": 144\\n},\\n\\\"accelerometerInfo\\\": {\\n\\\"timestamp\\\": 1643200309,\\n\\\"numberOfSamples\\\": 10,\\n\\\"samplingDuration\\\": 3792,\\n\\\"X\\\": -937,\\n\\\"Y\\\": -4,\\n\\\"Z\\\": 0\\n},\\n\\\"counter\\\": 428,\\n\\\"deviceId\\\": \\\"9c51ef10-bf79-4556-8767-1de4bdda0836\\\"\\n}\",\n \"imei\": \"352656107000000\",\n \"imsi\": \"232031721000000\",\n \"timestamp\": 1643200311304,\n \"lat\": 34.232237643,\n \"lon\": 8.1074428597,\n \"wifiLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"cellLocation\": {\n \"lat\": 0,\n \"lon\": 0\n },\n \"temperature\": -2,\n \"accelerometerInfo\": {\n \"x\": -937,\n \"y\": -4,\n \"z\": 0\n },\n \"x\": -937,\n \"y\": -4,\n \"z\": 0,\n \"DeviceID\": 7,\n \"deviceId\": \"9c51ef10-bf79-4556-8767-1de4bdda0836\"\n },\n \"message\": \"Successfully received and saved device info\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create Contracts",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"sellerId\": 1,\n \"buyerId\": 2,\n \"description\": \"This is a sample contract.\",\n \"productId\": 3,\n \"minTemp\": -20.0,\n \"maxTemp\": 40.0,\n \"arrivalDate\": 1674019200,\n \"penaltyType\": \"AMOUNT\",\n \"penaltyValue\": 100,\n \"penaltyRec\": \"DAILY\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{URL}}/contracts/create",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"contracts",
|
|
"create"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Create Contracts",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"sellerId\": 1,\n \"buyerId\": 2,\n \"description\": \"This is a sample contract.\",\n \"productId\": 3,\n \"minTemp\": -20.0,\n \"maxTemp\": 40.0,\n \"arrivalDate\": 1674019200,\n \"penaltyType\": \"AMOUNT\",\n \"penaltyValue\": 100,\n \"penaltyRec\": \"DAILY\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{URL}}/contracts/create",
|
|
"host": [
|
|
"{{URL}}"
|
|
],
|
|
"path": [
|
|
"contracts",
|
|
"create"
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Access-Control-Allow-Credentials",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Headers",
|
|
"value": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Methods",
|
|
"value": "POST, OPTIONS, GET, PUT"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Date",
|
|
"value": "Fri, 06 Oct 2023 08:40:15 GMT"
|
|
},
|
|
{
|
|
"key": "Content-Length",
|
|
"value": "61"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"id\": 9,\n \"message\": \"Successfully received and saved contract\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |