Split ListServices method up into ListServices and ListServiceConfigurations

This commit is contained in:
Bas Kloosterman 2022-10-17 09:11:34 +02:00
parent 5bc626687b
commit 63ab85bdc3
3 changed files with 9 additions and 4 deletions

View file

@ -12,7 +12,7 @@ message PatientRegistrationData {
PatientMeta subject = 1;
bool registered = 2;
string id = 3;
google.protobuf.Struct callbackProtocolMeta = 4;
google.protobuf.Struct callbackProtocolData = 4;
}
message PatientMeta {

View file

@ -65,10 +65,14 @@ message ServiceConfiguration {
CallbackConfiguration push = 4;
}
message ListServicesRequest {
}
message ListServicesRequest {}
message ListServicesResponse {
repeated ServiceDefinition availableServices = 1;
}
message ListServiceConfigurationsRequest {}
message ListServiceConfigurationsResponse {
repeated ServiceConfiguration configurations = 2;
}
}

View file

@ -14,6 +14,7 @@ service OkAPI {
// Configuration
rpc ConfigureCallback (ConfigureCallbackRequest) returns (ConfigureCallbackResponse) {}
rpc ListServices (ListServicesRequest) returns (ListServicesResponse) {}
rpc ListServiceConfigurations (ListServiceConfigurationsRequest) returns (ListServiceConfigurationsResponse) {}
rpc UpdatePatientRegistration (UpdatePatientRegistrationRequest) returns (UpdatePatientRegistrationResponse) {}
rpc ListPatientRegistration (ListPatientRegistrationRequest) returns (ListPatientRegistrationResponse) {}