8.3. REST-API-Schnittstelle
Parameter
•
(
node
•
service
JSON-Objekt zur Anfrage
•
service args
Anfrage-Header
•
Accept
Antwort-Headers
•
Content-Type
Statuscodes
•
200 OK
•
403 Forbidden
Modul vorliegt.
•
404 Not Found
Referenzierte Datenmodelle
•
Service
GET /nodes/{node}/status
Abruf des Status eines Moduls.
Musteranfrage
GET
/api/v1/nodes/<node>/status
Musterantwort
HTTP/1.1 200
OK
Content-Type:
application/json
{
"status": "running",
"timestamp": 1503075030.2335997,
"values": {
"baseline": "0.0650542",
"color": "0",
"exp": "0.00426667",
"focal": "0.844893",
"fps": "25.1352",
"gain": "12.0412",
"height": "960",
"temp _
left": "39.6",
"temp _
right": "38.2",
"time": "0.00406513",
"width":
"1280"
}
}
Parameter
•
(
node
Antwort-Headers
•
Content-Type
Roboception GmbH
Handbuch: rc_visard
) – Modulname (obligatorisch)
string
(
) – Name des Service (obligatorisch)
string
(
) – Beispielargumente (obligatorisch)
Service
– application/json
– application/json
– Serviceaufruf erledigt (returns Service)
– Service-Aufruf verboten, z.B. weil keine valide Lizenz für dieses
– Modul oder Service nicht gefunden
(Abschnitt 8.3.3)
HTTP/1.1
) – Modulname (obligatorisch)
string
– application/json
216
Rev: 21.01.1
Status: 30.01.2021