From 5332d483642ffa96500aa475ca4ba5955c32e5d7 Mon Sep 17 00:00:00 2001 From: Ale Paredes <1709578+ale7714@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:48:54 -0400 Subject: [PATCH] RSDK-8381 add viam server version to API --- proto/viam/robot/v1/robot.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/proto/viam/robot/v1/robot.proto b/proto/viam/robot/v1/robot.proto index bc247f79..23a1c856 100644 --- a/proto/viam/robot/v1/robot.proto +++ b/proto/viam/robot/v1/robot.proto @@ -149,6 +149,13 @@ service RobotService { get: "/viam/api/v1/machine_status" }; } + + // GetVersion returns version information about the robot. + rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) { + option (google.api.http) = { + get: "/viam/api/v1/version" + }; + } } message FrameSystemConfig { @@ -409,3 +416,15 @@ message ConfigStatus { // config ingestion timestamp. google.protobuf.Timestamp last_updated = 2; } + +message GetVersionRequest {} + +message GetVersionResponse { + // platform type of viam-server, either rdk or micro-rdk. + string platform = 1; + + // version of viam-server. If built without a version, it will be dev-. + string version = 2; + + string api_version = 3; +}