workspace_service.proto 730 B

12345678910111213141516171819202122232425262728
  1. syntax = "proto3";
  2. package memos.api.v1;
  3. import "google/api/annotations.proto";
  4. option go_package = "gen/api/v1";
  5. service WorkspaceService {
  6. // GetWorkspaceProfile returns the workspace profile.
  7. rpc GetWorkspaceProfile(GetWorkspaceProfileRequest) returns (WorkspaceProfile) {
  8. option (google.api.http) = {get: "/api/v1/workspace/profile"};
  9. }
  10. }
  11. message WorkspaceProfile {
  12. // The name of instance owner.
  13. // Format: "users/{id}"
  14. string owner = 1;
  15. // version is the current version of instance
  16. string version = 2;
  17. // mode is the instance mode (e.g. "prod", "dev" or "demo").
  18. string mode = 3;
  19. // instance_url is the URL of the instance.
  20. string instance_url = 6;
  21. }
  22. message GetWorkspaceProfileRequest {}