@@ -9,22 +9,111 @@ participant "Postman\n" as Postman #Orange
99participant "Data\n" as Data
1010participant "Collection\n" as Collection
1111
12- participant "/v1/TODO" as foo #LightBlue
12+ participant "/v1/add-controller" as addCtrl #LightBlue
13+ participant "/v1/listen-to-controllers" as listenCtrl #LightBlue
14+ participant "/v1/remove-controller" as removeCtrl #LightBlue
15+ participant "/v1/notify-controller-attribute-value-changes" as notifyCAVC #LightBlue
16+ participant "/v1/notify-controller-object-creations" as notifyCOC #LightBlue
17+ participant "/v1/notify-controller-object-deletions" as notifyCOD #LightBlue
18+ participant "/v1/notify-device-alarms" as notifyAlarm #LightBlue
19+ participant "/v1/notify-device-attribute-value-changes" as notifyDAVC #LightBlue
20+ participant "/v1/notify-device-object-creations" as notifyDOC #LightBlue
21+ participant "/v1/notify-device-object-deletions" as notifyDOD #LightBlue
1322
1423
1524group Preparation
16- Data --\\o Postman : {servers, mount-name }
25+ Data --\\o Postman : {servers, collectionInput (controllerInfo, subscriberInfo) }
1726 activate Postman
18- Postman --\\o Collection : {servers, mount-name }
27+ Postman --\\o Collection : {servers, collectionInput }
1928end
2029
21- group /v1 /todo
30+ group /v1 /add - controller
31+ Collection --\\o Postman : {servers, controllerInfo}
32+ Postman -> addCtrl : {controllerInfo}
33+ addCtrl <-- Postman : ResponseCode
34+ note right Postman #Orange
35+ check for ResponseCode == 204
36+ end note
37+ end
38+
39+ group /v1 /listen - to - controllers
2240 Collection --\\o Postman : {servers}
23- Postman -> foo : {mount-name}
24- foo <-- Postman : ResponseCode, {ResponseBody}
41+ Postman -> listenCtrl
42+ listenCtrl <-- Postman : ResponseCode
43+ note right Postman #Orange
44+ check for ResponseCode == 204
45+ end note
46+ end
47+
48+ group /v1 /remove - controller
49+ Collection --\\o Postman : {servers, controllerInfo}
50+ Postman -> removeCtrl : {controllerInfo}
51+ removeCtrl <-- Postman : ResponseCode
52+ note right Postman #Orange
53+ check for ResponseCode == 204
54+ end note
55+ end
56+
57+ group /v1 /notify - controller - attribute - value - changes
58+ Collection --\\o Postman : {servers, subscriberInfo}
59+ Postman -> notifyCAVC : {subscriberInfo}
60+ notifyCAVC <-- Postman : ResponseCode
61+ note right Postman #Orange
62+ check for ResponseCode == 204
63+ end note
64+ end
65+
66+ group /v1 /notify - controller - object - creations
67+ Collection --\\o Postman : {servers, subscriberInfo}
68+ Postman -> notifyCOC : {subscriberInfo}
69+ notifyCOC <-- Postman : ResponseCode
70+ note right Postman #Orange
71+ check for ResponseCode == 204
72+ end note
73+ end
74+
75+ group /v1 /notify - controller - object - deletions
76+ Collection --\\o Postman : {servers, subscriberInfo}
77+ Postman -> notifyCOD : {subscriberInfo}
78+ notifyCOD <-- Postman : ResponseCode
79+ note right Postman #Orange
80+ check for ResponseCode == 204
81+ end note
82+ end
83+
84+ group /v1 /notify - device - alarms
85+ Collection --\\o Postman : {servers, subscriberInfo}
86+ Postman -> notifyAlarm : {subscriberInfo}
87+ notifyAlarm <-- Postman : ResponseCode
88+ note right Postman #Orange
89+ check for ResponseCode == 204
90+ end note
91+ end
92+
93+ group /v1 /notify - device - attribute - value - changes
94+ Collection --\\o Postman : {servers, subscriberInfo}
95+ Postman -> notifyDAVC : {subscriberInfo}
96+ notifyDAVC <-- Postman : ResponseCode
97+ note right Postman #Orange
98+ check for ResponseCode == 204
99+ end note
100+ end
101+
102+ group /v1 /notify - device - object - creations
103+ Collection --\\o Postman : {servers, subscriberInfo}
104+ Postman -> notifyDOC : {subscriberInfo}
105+ notifyDOC <-- Postman : ResponseCode
106+ note right Postman #Orange
107+ check for ResponseCode == 204
108+ end note
109+ end
110+
111+ group /v1 /notify - device - object - deletions
112+ Collection --\\o Postman : {servers, subscriberInfo}
113+ Postman -> notifyDOD : {subscriberInfo}
114+ notifyDOD <-- Postman : ResponseCode
25115 note right Postman #Orange
26- check for ResponseCode == 200
27- check for ResponseBody matches reference schema
116+ check for ResponseCode == 204
28117 end note
29118end
30119
0 commit comments