Skip to content

Commit e10b5f6

Browse files
author
Florin Stan
committed
Merge branch '882-learn-file-upload-through-fts' into 'master'
Resolve "Learn file upload through fts" Closes #882 See merge request tcnpublic/api!1030
2 parents 6052dc2 + 991ba1a commit e10b5f6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

api/v0alpha/learn.proto

+21
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,19 @@ service Learn {
305305
]
306306
};
307307
}
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+
}
308321
}
309322

310323
// request to check if learning page url exists
@@ -681,3 +694,11 @@ message UploadStaticImageRes {
681694
// updated image details
682695
LearnImage image = 1;
683696
}
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+
}

0 commit comments

Comments
 (0)