File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,19 @@ service Learn {
305
305
]
306
306
};
307
307
}
308
+
309
+ // upload url for file updates
310
+ rpc GetUpdateUrl (GetUpdateUrlReq ) returns (GetUpdateUrlRes ) {
311
+ option (google.api.http ).post = "/api/v0alpha/learn/getupdateurl" ;
312
+ option (google.api.http ).body = "*" ;
313
+ option (annotations.authz ) = {
314
+ sets : [
315
+ {
316
+ permissions : [PERMISSION_LEARN_EDIT]
317
+ }
318
+ ]
319
+ };
320
+ }
308
321
}
309
322
310
323
// request to check if learning page url exists
@@ -681,3 +694,11 @@ message UploadStaticImageRes {
681
694
// updated image details
682
695
LearnImage image = 1 ;
683
696
}
697
+
698
+ message GetUpdateUrlReq {}
699
+ message GetUpdateUrlRes {
700
+ // the url of the file uploaded
701
+ string url = 1 ;
702
+ // the identifier of the file
703
+ string id = 2 ;
704
+ }
You can’t perform that action at this time.
0 commit comments