Bluemage/schemas/proto/subreddits/v1/get.proto

18 lines
357 B
Protocol Buffer
Raw Permalink Normal View History

2024-08-09 15:22:54 +07:00
syntax = "proto3";
package subreddits.v1;
import "buf/validate/validate.proto";
2024-08-15 14:13:40 +07:00
import "subreddits/v1/types.proto";
2024-08-09 15:22:54 +07:00
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 {
2024-08-15 14:13:40 +07:00
Subreddit subreddit = 1;
2024-08-09 15:22:54 +07:00
}