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

Commit f3858cc

Browse files
committed
Fix proto
1 parent cd924bb commit f3858cc

7 files changed

+71
-70
lines changed

api/entries.pb.go

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

api/entries.pb.gw.go

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

api/entries.swagger.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"application/json"
1616
],
1717
"paths": {
18-
"/entries": {
18+
"/entries/public": {
1919
"get": {
20-
"operationId": "ListEntries",
20+
"operationId": "ListPublicEntries",
2121
"responses": {
2222
"200": {
2323
"description": "",

api/entries.validator.pb.go

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

api/protos/entries.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import "user_blogs.proto";
1414
import "users.proto";
1515

1616
service EntryService {
17-
rpc ListEntries (ListEntriesRequest) returns (ListEntriesResponse) {
17+
rpc ListPublicEntries (ListEntriesRequest) returns (ListEntriesResponse) {
1818
option (google.api.http) = {
19-
get: "/entries"
19+
get: "/entries/public"
2020
};
2121
}
2222
}

api/users.validator.pb.go

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

app/server/entries_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type entryServiceServerImpl struct {
3535
cfg *config.Config
3636
}
3737

38-
func (s *entryServiceServerImpl) ListEntries(ctx context.Context, req *api_pb.ListEntriesRequest) (*api_pb.ListEntriesResponse, error) {
38+
func (s *entryServiceServerImpl) ListPublicEntries(ctx context.Context, req *api_pb.ListEntriesRequest) (*api_pb.ListEntriesResponse, error) {
3939
size := req.GetPageSize()
4040
if size == 0 {
4141
size = 50

0 commit comments

Comments
 (0)