From d27f45602b0cd05da1b4a3c50bb5326c9989e0a7 Mon Sep 17 00:00:00 2001 From: Hermawan Wijaya Date: Wed, 29 Nov 2023 12:50:34 +0700 Subject: [PATCH] chore: change http method and params --- gotocompany/compass/v1beta1/service.proto | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gotocompany/compass/v1beta1/service.proto b/gotocompany/compass/v1beta1/service.proto index 15bb7305..dc9437da 100644 --- a/gotocompany/compass/v1beta1/service.proto +++ b/gotocompany/compass/v1beta1/service.proto @@ -405,7 +405,7 @@ service CompassService { rpc SyncAssets(SyncAssetsRequest) returns (SyncAssetsResponse) { option (google.api.http) = { - get: "/v1beta1/assets/sync" + post: "/v1beta1/assets/sync" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -1212,10 +1212,12 @@ message CreateAssetProbeResponse { string id = 1; } -message SyncAssetsRequest {} +message SyncAssetsRequest { + repeated string index_names = 1; +} message SyncAssetsResponse { - uint32 num_affected = 1; + string job_id = 1; } message GetUserStarredAssetsRequest {