From ff7234baca8ee84bb0890f7a22793b62308b470e Mon Sep 17 00:00:00 2001 From: DTCurrie Date: Thu, 29 Aug 2024 14:23:12 -0400 Subject: [PATCH] Update apis.json to use new fields --- codesamples/apis.json | 97 ++++++++++++++++++++++++------------------- 1 file changed, 55 insertions(+), 42 deletions(-) diff --git a/codesamples/apis.json b/codesamples/apis.json index 36e2f0cfb..3bd2b0573 100644 --- a/codesamples/apis.json +++ b/codesamples/apis.json @@ -1,44 +1,57 @@ { - "base": { - "client": "Base", - "func": "is_moving", - "args": [] - }, - "camera": { - "client": "Camera", - "func": "get_image", - "args": [ "std::string(\"image/png\")" ], - "comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary." - }, - "encoder": { - "client": "Encoder", - "func": "get_properties", - "args": [] - }, - "motion": { - "client": "Motion", - "func": "get_pose", - "args": ["{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", "", "{}", "nullptr"], - "comment": "Update with correct component name, destination frame, supplemental transforms, and extra params" - }, - "motor": { - "client": "Motor", - "func": "is_moving", - "args": [] - }, - "movement_sensor": { - "client": "MovementSensor", - "func": "get_linear_velocity", - "args": [] - }, - "power_sensor": { - "client": "PowerSensor", - "func": "get_voltage", - "args": [] - }, - "sensor": { - "client": "Sensor", - "func": "get_readings", - "args": [] - } + "base": { + "importName": "Base", + "func": "is_moving", + "args": [], + "packagePath": "viam/sdk/components" + }, + "camera": { + "importName": "Camera", + "func": "get_image", + "args": ["std::string(\"image/png\")"], + "comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary.", + "packagePath": "viam/sdk/components" + }, + "encoder": { + "importName": "Encoder", + "func": "get_properties", + "args": [], + "packagePath": "viam/sdk/components" + }, + "motion": { + "importName": "Motion", + "func": "get_pose", + "args": [ + "{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", + "", + "{}", + "nullptr" + ], + "comment": "Update with correct component name, destination frame, supplemental transforms, and extra params", + "packagePath": "viam/sdk/services" + }, + "motor": { + "importName": "Motor", + "func": "is_moving", + "args": [], + "packagePath": "viam/sdk/components" + }, + "movement_sensor": { + "importName": "MovementSensor", + "func": "get_linear_velocity", + "args": [], + "packagePath": "viam/sdk/components" + }, + "power_sensor": { + "importName": "PowerSensor", + "func": "get_voltage", + "args": [], + "packagePath": "viam/sdk/components" + }, + "sensor": { + "importName": "Sensor", + "func": "get_readings", + "args": [], + "packagePath": "viam/sdk/components" + } }