syntax = "proto3";

package imageresolver;

import "google/api/annotations.proto";

option csharp_namespace = "CMSMicroservice.Protobuf.Protos.ImageResolver";

service ImageResolverContract
{
    // تبدیل لیست مسیرهای تصویر به base64 data-URI
    rpc ResolveImages(ResolveImagesRequest) returns (ResolveImagesResponse){
        option (google.api.http) = { post: "/ResolveImages" body: "*" };
    };
}

message ResolveImagesRequest
{
    repeated string paths = 1;
}

message ResolveImagesResponse
{
    repeated ResolvedImage images = 1;
}

message ResolvedImage
{
    string original_path = 1;
    string data_uri = 2;
}
