memos/proto/api/v2/workspace_service.proto

31 lines
750 B
Protocol Buffer
Raw Normal View History

2024-01-28 07:35:42 +08:00
syntax = "proto3";
package memos.api.v2;
import "google/api/annotations.proto";
option go_package = "gen/api/v2";
service WorkspaceService {
2024-02-01 21:26:09 +08:00
// GetWorkspaceProfile returns the workspace profile.
2024-01-28 07:35:42 +08:00
rpc GetWorkspaceProfile(GetWorkspaceProfileRequest) returns (GetWorkspaceProfileResponse) {
option (google.api.http) = {get: "/api/v2/workspace/profile"};
}
}
message WorkspaceProfile {
2024-03-21 21:39:34 +08:00
// The name of intance owner.
// Format: "users/{id}"
string owner = 1;
// version is the current version of instance
2024-03-21 21:39:34 +08:00
string version = 2;
// mode is the instance mode (e.g. "prod", "dev" or "demo").
2024-03-21 21:39:34 +08:00
string mode = 3;
2024-01-28 07:35:42 +08:00
}
message GetWorkspaceProfileRequest {}
message GetWorkspaceProfileResponse {
WorkspaceProfile workspace_profile = 1;
}