Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 10 additions & 1 deletion proto/attributes/attributes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ message GetValueResponse {
Value value = 1;
}

message ListValuesRequest {}
message ListValuesRequest {
string attribute_id = 1 [(buf.validate.field).required = true];
}
message ListValuesResponse {
repeated Value values = 1;
}
Expand Down Expand Up @@ -191,6 +193,13 @@ service AttributesService {
*/
rpc ListAttributes(ListAttributesRequest) returns (ListAttributesResponse) {}

/*
List Values
Example:
grpcurl -plaintext -d '{"attribute_id": "attribute_id"}' localhost:8080 attributes.AttributesService/ListValues
*/
rpc ListAttributeValues(ListValuesRequest) returns (ListValuesResponse) {}

rpc GetAttribute(GetAttributeRequest) returns (GetAttributeResponse) {
option (google.api.http) = {get: "/attributes/{id}"};
}
Expand Down
Loading