Skip to content

Commit 7cb40a3

Browse files
committed
Create request should return the new dispatch
refs #79 Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 556d1ac commit 7cb40a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ service MicrogridDispatchService {
5858
rpc ListMicrogridDispatches(ListMicrogridDispatchesRequest) returns (ListMicrogridDispatchesResponse);
5959

6060
// Create a new dispatch
61-
rpc CreateMicrogridDispatch(CreateMicrogridDispatchRequest) returns (google.protobuf.Empty);
61+
rpc CreateMicrogridDispatch(CreateMicrogridDispatchRequest) returns (CreateMicrogridDispatchResponse);
6262

6363
// Update a dispatch
6464
rpc UpdateMicrogridDispatch(UpdateMicrogridDispatchRequest) returns (google.protobuf.Empty);
@@ -333,6 +333,10 @@ message CreateMicrogridDispatchRequest {
333333
Dispatch dispatch = 2;
334334
}
335335

336+
// Response message for creating a new dispatch
337+
message CreateMicrogridDispatchResponse {
338+
// The created dispatch
339+
DispatchDetail dispatch = 1;
336340
}
337341

338342
// Message to update the dispatch with the given ID, with the given attributes

0 commit comments

Comments
 (0)