mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
Add image/delete endpoint (#258)
This commit is contained in:
@@ -8,6 +8,7 @@ service Image {
|
||||
rpc Upload(UploadRequest) returns (UploadResponse) {}
|
||||
rpc Resize(ResizeRequest) returns (ResizeResponse) {}
|
||||
rpc Convert(ConvertRequest) returns (ConvertResponse) {}
|
||||
rpc Delete(DeleteRequest) returns (DeleteResponse) {}
|
||||
}
|
||||
|
||||
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
|
||||
@@ -89,3 +90,12 @@ message ConvertResponse {
|
||||
string base64 = 1;
|
||||
string url = 2;
|
||||
}
|
||||
|
||||
// Delete an image previously uploaded.
|
||||
message DeleteRequest {
|
||||
// url of the image to delete e.g. https://cdn.m3ocontent.com/micro/images/micro/41e23b39-48dd-42b6-9738-79a313414bb8/cat.jpeg
|
||||
string url = 1;
|
||||
}
|
||||
|
||||
message DeleteResponse {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user