8.3. REST-API-Schnittstelle
Referenzierte Datenmodelle
Stream
•
PUT /datastreams/{stream}
Aktualisierung einer Datenstrom-Kon guration.
Musteranfrage
PUT
/api/v1/datastreams/<stream>
Accept:
application/x-www-form-urlencoded
Musterantwort
HTTP/1.1 200
OK
Content-Type:
application/json
{
"description":
"Pose of left camera at VisualOdometry rate
"destinations": [
"192.168.1.13:30000",
"192.168.1.25:40000"
],
"name": "pose",
"protobuf": "Frame",
"protocol":
"UDP"
}
Parameter
•
stream
Formularparameter
•
destination
Anfrage-Header
•
Accept
Antwort-Headers
•
Content-Type
Statuscodes
•
200 OK
•
404 Not Found
Referenzierte Datenmodelle
•
Stream
DELETE /datastreams/{stream}
Löschen eines Ziels aus der Datenstrom-Kon guration.
Musteranfrage
DELETE
/api/v1/datastreams/<stream>?destination=<destination>
Musterantwort
HTTP/1.1 200
OK
Content-Type:
application/json
{
Roboception GmbH
Handbuch: rc_visard
(Abschnitt 8.3.3)
HTTP/1.1
(
) – Name des Datenstroms (obligatorisch)
string
– Hinzuzufügendes Ziel („IP:Port") (obligatorisch)
– application/x-www-form-urlencoded
– application/json
– Erfolgreiche Verarbeitung (Rückgabe: Datenstrom)
– Datenstrom nicht gefunden
(Abschnitt 8.3.3)
219
(~10Hz)",
HTTP/1.1
(Fortsetzung auf der nächsten Seite)
Rev: 21.01.1
Status: 30.01.2021