mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-16 02:31:04 +08:00
44 lines
913 B
Protocol Buffer
44 lines
913 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package api;
|
|
option go_package = "github.com/onepanelio/core/api/gen";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
service ServiceService {
|
|
rpc GetService(GetServiceRequest) returns (Service) {
|
|
option (google.api.http) = {
|
|
get: "/apis/v1beta1/{namespace}/service/{name}"
|
|
};
|
|
}
|
|
|
|
rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
|
|
option (google.api.http) = {
|
|
get: "/apis/v1beta1/{namespace}/service"
|
|
};
|
|
}
|
|
}
|
|
|
|
message Service {
|
|
string name = 1;
|
|
string url = 2;
|
|
}
|
|
|
|
message GetServiceRequest {
|
|
string namespace = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
message ListServicesRequest {
|
|
string namespace = 1;
|
|
int32 pageSize = 2;
|
|
int32 page = 3;
|
|
}
|
|
|
|
message ListServicesResponse {
|
|
int32 count = 1;
|
|
repeated Service services = 2;
|
|
int32 page = 3;
|
|
int32 pages = 4;
|
|
int32 totalCount = 5;
|
|
} |