Skip to content

Commit

Permalink
update share api (#124)
Browse files Browse the repository at this point in the history
Added the updated share to the UpdateShareResponse so that we don't have to do 2 requests to update and return the updated share.
  • Loading branch information
C0rby authored May 6, 2021
1 parent 62377dd commit 2bb7c93
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cs3/sharing/collaboration/v1beta1/collaboration_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ message UpdateShareResponse {
// OPTIONAL.
// Opaque information.
cs3.types.v1beta1.Opaque opaque = 2;
// REQUIRED.
// The updated share.
Share share = 3;
}

message ListSharesRequest {
Expand Down Expand Up @@ -261,6 +264,9 @@ message UpdateReceivedShareResponse {
// OPTIONAL.
// Opaque information.
cs3.types.v1beta1.Opaque opaque = 2;
// REQUIRED.
// The updated share.
ReceivedShare share = 3;
}

message GetReceivedShareRequest {
Expand Down
16 changes: 16 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8710,6 +8710,14 @@ <h3 id="cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse">UpdateRec
Opaque information. </p></td>
</tr>

<tr>
<td>share</td>
<td><a href="#cs3.sharing.collaboration.v1beta1.ReceivedShare">ReceivedShare</a></td>
<td></td>
<td><p>REQUIRED.
The updated share. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -8815,6 +8823,14 @@ <h3 id="cs3.sharing.collaboration.v1beta1.UpdateShareResponse">UpdateShareRespon
Opaque information. </p></td>
</tr>

<tr>
<td>share</td>
<td><a href="#cs3.sharing.collaboration.v1beta1.Share">Share</a></td>
<td></td>
<td><p>REQUIRED.
The updated share. </p></td>
</tr>

</tbody>
</table>

Expand Down

0 comments on commit 2bb7c93

Please sign in to comment.