Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit adc04c0

Browse files
committed
Update proto
1 parent 3fd581e commit adc04c0

6 files changed

+204
-79
lines changed

api/protos/user_blogs.proto

+12-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ import "google/api/annotations.proto";
99
import "google/protobuf/empty.proto";
1010

1111
service UserBlogService {
12+
rpc FindFeedURL (FindFeedURLRequest) returns (Blog) {
13+
option (google.api.http) = {
14+
post: "/user/blogs/feed_url"
15+
body: "*"
16+
};
17+
}
1218
rpc CreateUserBlog (CreateUserBlogRequest) returns (Blog) {
1319
option (google.api.http) = {
1420
post: "/user/blogs"
15-
body: "*"
21+
body: "blog"
1622
};
1723
}
1824
rpc UpdateUserBlog (UpdateUserBlogRequest) returns (Blog) {
1925
option (google.api.http) = {
2026
patch: "/user/blogs/{blog.blog_id}"
21-
body: "*"
27+
body: "blog"
2228
};
2329
}
2430
rpc DeleteUserBlog (DeleteUserBlogRequest) returns (google.protobuf.Empty) {
@@ -34,14 +40,16 @@ message Blog {
3440
string feed_url = 3;
3541
}
3642

43+
message FindFeedURLRequest {
44+
string url = 1;
45+
}
46+
3747
message CreateUserBlogRequest {
3848
Blog blog = 1;
39-
bool auto_detect_feed = 2;
4049
}
4150

4251
message UpdateUserBlogRequest {
4352
Blog blog = 1;
44-
bool auto_detect_feed = 2;
4553
}
4654

4755
message DeleteUserBlogRequest {

api/user_blogs.pb.go

+109-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/user_blogs.pb.gw.go

+48-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)