46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
@startuml 05-seq-configure-deploy
|
|
title Sequence — Operator configures camera + AI task and deploys
|
|
|
|
actor "Operator" as User
|
|
participant "Qt UI" as UI
|
|
participant "ANSVIS\n/api/v1" as API
|
|
participant "ANSVIS core" as LEG
|
|
participant "L1 edge" as EDGE
|
|
|
|
User -> UI : Open Cameras screen
|
|
UI -> API : GET /cameras?page=1
|
|
API -> LEG : legacy list
|
|
LEG --> API : cameras
|
|
API --> UI : 200 {items, page, total}
|
|
|
|
User -> UI : Add RTSP camera (form)
|
|
UI -> API : POST /cameras
|
|
note right of UI
|
|
body has nested credentials,
|
|
capturing, image_size —
|
|
no stringified JSON
|
|
end note
|
|
API -> LEG : legacy add
|
|
LEG --> API : id=123
|
|
API --> UI : 201 Location: /cameras/123
|
|
|
|
User -> UI : Configure AI task
|
|
UI -> API : POST /ai-tasks\n{camera_id:123, ...}
|
|
API -> LEG : legacy create
|
|
LEG --> API : id=456
|
|
API --> UI : 201 {id:456}
|
|
|
|
User -> UI : Start task
|
|
UI -> API : POST /ai-tasks/456/start
|
|
API -> LEG : dispatch
|
|
LEG -> EDGE : config + start
|
|
EDGE --> LEG : running
|
|
API --> UI : 202 {state:starting}
|
|
|
|
loop status poll (or SSE later)
|
|
UI -> API : GET /ai-tasks/456/status
|
|
API --> UI : 200 {state:running, fps:14.2}
|
|
end
|
|
|
|
@enduml
|