2021-01-28 14:15:31 +01:00

37 lines
890 B
Protocol Buffer

// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
syntax = "proto3";
package contentservice;
option go_package = "github.com/gitpod-io/gitpod/content-service/api";
service BlobService {
// UploadUrl provides a URL to which clients can upload the content via HTTP PUT.
rpc UploadUrl(UploadUrlRequest) returns (UploadUrlResponse) {}
// DownloadUrl provides a URL from which clients cat download the content via HTTP GET.
rpc DownloadUrl(DownloadUrlRequest) returns (DownloadUrlResponse) {}
}
message UploadUrlRequest {
string owner_id = 1;
string name = 2;
}
message UploadUrlResponse {
string url = 1;
}
message DownloadUrlRequest {
string owner_id = 1;
string name = 2;
}
message DownloadUrlResponse {
string url = 1;
}