18 lines
357 B
Protocol Buffer
18 lines
357 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package subreddits.v1;
|
|
|
|
import "buf/validate/validate.proto";
|
|
import "subreddits/v1/types.proto";
|
|
|
|
message GetSubredditRequest {
|
|
// name of the subreddit. Case insensitive.
|
|
//
|
|
// Returns error on not found.
|
|
string name = 1 [(buf.validate.field).string.min_len = 1];
|
|
}
|
|
|
|
message GetSubredditResponse {
|
|
Subreddit subreddit = 1;
|
|
}
|