initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
package api.services;
|
||||
|
||||
option go_package = "pkg/pb/api/services";
|
||||
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
||||
info: {
|
||||
title: "Application"
|
||||
version: "%version%"
|
||||
}
|
||||
security_definitions: {
|
||||
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
package api.services;
|
||||
|
||||
option go_package = "pkg/pb/api/services";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
service DebugAPI {
|
||||
rpc GetVersion (GetVersion.Request) returns (GetVersion.Response) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/v1/version"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
message GetVersion {
|
||||
message Request {}
|
||||
message Response {
|
||||
string version = 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user