Skip to content

Commit 2f9aac8

Browse files
committed
Add http routes for add/remove search attributes
;5u
1 parent f73d351 commit 2f9aac8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

temporal/api/operatorservice/v1/service.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,26 @@ service OperatorService {
2525
// Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists
2626
// Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails,
2727
rpc AddSearchAttributes (AddSearchAttributesRequest) returns (AddSearchAttributesResponse) {
28+
option (google.api.http) = {
29+
post: "/cluster/namespaces/{namespace}/search-attributes"
30+
body: "*"
31+
additional_bindings {
32+
post: "/api/v1/namespaces/{namespace}/search-attributes"
33+
body: "*"
34+
}
35+
};
2836
}
2937

3038
// RemoveSearchAttributes removes custom search attributes.
3139
//
3240
// Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered
3341
rpc RemoveSearchAttributes (RemoveSearchAttributesRequest) returns (RemoveSearchAttributesResponse) {
42+
option (google.api.http) = {
43+
delete: "/cluster/namespaces/{namespace}/search-attributes"
44+
additional_bindings {
45+
delete: "/api/v1/namespaces/{namespace}/search-attributes"
46+
}
47+
};
3448
}
3549

3650
// ListSearchAttributes returns comprehensive information about search attributes.

0 commit comments

Comments
 (0)