Created
November 16, 2020 07:42
-
-
Save asim/d3dea1832609b32538838529e693f9bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Query posts. Acts as a listing when no id or slug provided. | |
// Gets a single post by id or slug if any of them provided. | |
message QueryRequest { | |
string id = 1; | |
string slug = 2; | |
string tag = 3; | |
int64 offset = 4; | |
int64 limit = 5; | |
} | |
message QueryResponse { | |
repeated Post posts = 1; | |
} | |
message DeleteRequest { | |
string id = 1; | |
} | |
message DeleteResponse {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment