2024-08-13 13:14:50 +07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package images.v1;
|
|
|
|
|
2024-08-16 23:04:24 +07:00
|
|
|
import "images/v1/list_by_subreddit.proto";
|
2024-08-16 14:38:44 +07:00
|
|
|
import "images/v1/recently_added.proto";
|
2024-08-16 10:25:38 +07:00
|
|
|
|
2024-08-13 13:14:50 +07:00
|
|
|
service ImageService {
|
2024-08-16 14:38:44 +07:00
|
|
|
// RecentlyAddedImages returns a list of recently added images.
|
2024-08-16 10:25:38 +07:00
|
|
|
//
|
2024-08-16 14:38:44 +07:00
|
|
|
// The returned images are grouped by device and sorted by the time they were added.
|
2024-08-16 10:25:38 +07:00
|
|
|
//
|
2024-08-16 14:38:44 +07:00
|
|
|
// Use after and before to traverse fetch more images.
|
2024-08-16 10:25:38 +07:00
|
|
|
//
|
2024-08-16 14:38:44 +07:00
|
|
|
// Maximum number of images that can be fetched at a time is 300.
|
|
|
|
rpc RecentlyAddedImages(RecentlyAddedImagesRequest) returns (RecentlyAddedImagesResponse) {}
|
2024-08-16 23:04:24 +07:00
|
|
|
rpc ListBySubreddit(ListBySubredditRequest) returns (ListBySubredditResponse) {}
|
2024-08-13 13:14:50 +07:00
|
|
|
}
|