merch-api/proto/serviceRegistration.proto

34 lines
791 B
Protocol Buffer
Raw Permalink Normal View History

2026-03-20 13:44:37 +03:00
syntax = "proto3";
2026-04-05 17:59:47 +03:00
import "google/protobuf/empty.proto";
2026-03-20 13:44:37 +03:00
package auth.registration;
option go_package = "/pkg/externalRegistration/v1;externalRegV1";
message RegistrationRequest {
string name = 1;
string description = 2;
int32 service_code = 3;
int32 service_end_code = 4;
string secret = 5;
string status = 6;
2026-04-05 17:59:47 +03:00
string service_url = 7;
2026-03-20 13:44:37 +03:00
}
message RegistrationResponse {
int32 service_id = 1;
bool already_registered = 2;
2026-04-05 17:59:47 +03:00
string service_url = 3;
}
message UpdateRequest {
string name = 1;
string description = 2;
string status = 3;
string service_url = 4;
int32 service_code = 5;
2026-03-20 13:44:37 +03:00
}
service ExternalRegistration {
rpc AuthenticateOrRegister (RegistrationRequest) returns (RegistrationResponse);
2026-04-05 17:59:47 +03:00
rpc Update (UpdateRequest) returns (google.protobuf.Empty);
2026-03-20 13:44:37 +03:00
}