@shyntech-proximity/sensor-app 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/openapi.yaml +3 -55
- package/package.json +1 -1
package/docs/openapi.yaml
CHANGED
|
@@ -17,8 +17,6 @@ servers:
|
|
|
17
17
|
description: Beta
|
|
18
18
|
- url: https://sandbox.proximityapp.ai/api
|
|
19
19
|
description: Sandbox
|
|
20
|
-
- url: http://localhost:5000/api
|
|
21
|
-
description: Local Development
|
|
22
20
|
|
|
23
21
|
tags:
|
|
24
22
|
- name: Sensor
|
|
@@ -28,62 +26,12 @@ tags:
|
|
|
28
26
|
|
|
29
27
|
paths:
|
|
30
28
|
|
|
31
|
-
/proximity/
|
|
32
|
-
post:
|
|
33
|
-
tags: [Sensor]
|
|
34
|
-
summary: Submit Wi-Fi scan results from proximity sensor
|
|
35
|
-
description: |
|
|
36
|
-
Receives Wi-Fi scan results from a proximity device.
|
|
37
|
-
Saves scan data and resolves nearby vendors by SSID match.
|
|
38
|
-
requestBody:
|
|
39
|
-
required: true
|
|
40
|
-
content:
|
|
41
|
-
application/json:
|
|
42
|
-
schema:
|
|
43
|
-
$ref: "#/components/schemas/WifiScanPayload"
|
|
44
|
-
responses:
|
|
45
|
-
"200":
|
|
46
|
-
description: Scan processed successfully
|
|
47
|
-
content:
|
|
48
|
-
application/json:
|
|
49
|
-
schema:
|
|
50
|
-
$ref: "#/components/schemas/ScanAck"
|
|
51
|
-
"400":
|
|
52
|
-
description: Invalid payload
|
|
53
|
-
"500":
|
|
54
|
-
description: Internal server error
|
|
55
|
-
|
|
56
|
-
/proximity/sensor/wifip2p/scan:
|
|
57
|
-
post:
|
|
58
|
-
tags: [Sensor]
|
|
59
|
-
summary: Submit Wi-Fi Direct scan results
|
|
60
|
-
description: |
|
|
61
|
-
Receives Wi-Fi Direct (P2P) scan results from nearby devices.
|
|
62
|
-
Persists scan data and caches proximity metadata.
|
|
63
|
-
requestBody:
|
|
64
|
-
required: true
|
|
65
|
-
content:
|
|
66
|
-
application/json:
|
|
67
|
-
schema:
|
|
68
|
-
$ref: "#/components/schemas/WifiScanPayload"
|
|
69
|
-
responses:
|
|
70
|
-
"200":
|
|
71
|
-
description: Scan processed successfully
|
|
72
|
-
content:
|
|
73
|
-
application/json:
|
|
74
|
-
schema:
|
|
75
|
-
$ref: "#/components/schemas/ScanAck"
|
|
76
|
-
"400":
|
|
77
|
-
description: Invalid payload
|
|
78
|
-
"500":
|
|
79
|
-
description: Internal server error
|
|
80
|
-
|
|
81
|
-
/proximity/inventory:
|
|
29
|
+
/proximity/identities:
|
|
82
30
|
get:
|
|
83
31
|
tags: [Proximity]
|
|
84
|
-
summary: Get nearby
|
|
32
|
+
summary: Get nearby identities
|
|
85
33
|
description: |
|
|
86
|
-
Resolves nearby
|
|
34
|
+
Resolves nearby identities using the latest
|
|
87
35
|
proximity scan associated with a device.
|
|
88
36
|
parameters:
|
|
89
37
|
- name: x-device-sig
|