Skip to content

Commit

Permalink
RSDK-8381 add viam server version to API
Browse files Browse the repository at this point in the history
  • Loading branch information
ale7714 committed Jul 31, 2024
1 parent 93cb8d1 commit 5332d48
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions proto/viam/robot/v1/robot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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-<git hash>.
string version = 2;

string api_version = 3;
}

0 comments on commit 5332d48

Please sign in to comment.