Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add syncs API in compass #63

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions gotocompany/compass/v1beta1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,21 @@ service CompassService {
};
}

rpc SyncAssets(SyncAssetsRequest) returns (SyncAssetsResponse) {
batrov marked this conversation as resolved.
Show resolved Hide resolved
option (google.api.http) = {
post: "/v1beta1/assets/sync"
haveiss marked this conversation as resolved.
Show resolved Hide resolved
body: "*"
};

option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "Syncs assets in elasticsearch";
description: "Synchronize all assets in DB to elasticsearch";
tags: [
"Asset"
];
};
}

// Domain: User * Star
rpc GetUserStarredAssets(GetUserStarredAssetsRequest) returns (GetUserStarredAssetsResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -1198,6 +1213,14 @@ message CreateAssetProbeResponse {
string id = 1;
}

message SyncAssetsRequest {
repeated string services = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "filter by multiple services"
}];
}

message SyncAssetsResponse {}

message GetUserStarredAssetsRequest {
string user_id = 1;
uint32 size = 2 [(validate.rules).uint32 = {
Expand Down
Loading