I have a resource called Resturants. There are multiple fields and a few i want to allow people to query specifically for (Rating and Location).
Is it better to create multiple RPC endpoints like: ``` //all resturants QueryReseturants(QueryResturantsRequest) returns (QueryResturantsResponse) // all resturants with a specific rating QueryResturantsByRating(QueryResturantsByRatingRequest) returns (QueryResturantsByRatingResponse) // all resturants with a specific locatoin QueryResturantsByLocation(QueryResturantsByLocationRequest) returns (QueryResturantsByLocationResponse) ``` OR is it better to have one query, with the specifics as fields: ``` //all resturants QueryReseturants(QueryResturantsRequest) returns (QueryResturantsResponse) ``` where QueryResturantsRequest contains a Rating and Location field. Specifying neither will return all. or you can specify one or both of the fields to narrow down the resturants returned. Either way works for our use case, but I'm mainly curious if this breaks protobuf standards or something like that. Thanks. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/8d8961dd-48ee-408a-acf5-8c9e8435c784n%40googlegroups.com.
