i'm using nest and GRPC microservice to build my backend.
so first i have created rest api and now i'm converting it to GRPC call.
so my api response is as follows:
{
"data": {
"2-2-2-2": [ //id
[
24.942795, //lat
60.17088 //lng
]
]
}
}
protofile:
syntax = "proto3";
package LocationTracking;
service LocationTrackingService {
rpc getLocations(GetLocationInputs) returns (GetLocationResponse);
}
message GetLocationInputs {
string assetIds = 1;
optional string from = 4;
optional string to = 5;
}
message GetLocationResponse {
}
so how should i structure GetLocationResponse message for this kind of response?