Skip to content

Commit fd49052

Browse files
committed
Add extra response message for get requests
refs #166 Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 14a30fb commit fd49052

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ service MicrogridDispatchService {
7272
rpc UpdateMicrogridDispatch(UpdateMicrogridDispatchRequest) returns (UpdateMicrogridDispatchResponse);
7373

7474
// Get a single dispatch
75-
rpc GetMicrogridDispatch(GetMicrogridDispatchRequest) returns (Dispatch);
75+
rpc GetMicrogridDispatch(GetMicrogridDispatchRequest) returns (GetMicrogridDispatchResponse);
7676

7777
// Delete a given dispatch
7878
rpc DeleteMicrogridDispatch(DeleteMicrogridDispatchRequest) returns (google.protobuf.Empty);
@@ -434,6 +434,15 @@ message GetMicrogridDispatchRequest {
434434
uint64 dispatch_id = 2;
435435
}
436436

437+
// Response message for getting a single dispatch
438+
message GetMicrogridDispatchResponse {
439+
// The microgrid ID that the dispatch belongs to
440+
uint64 microgrid_id = 1;
441+
442+
// The dispatch
443+
DispatchDetail dispatch = 2;
444+
}
445+
437446
// Message to delete a single dispatch by its ID
438447
message DeleteMicrogridDispatchRequest {
439448
// The microgrid ID that the dispatch belongs to

0 commit comments

Comments
 (0)