Skip to content

Commit

Permalink
Merge pull request #20 from resonatecoop/get_membership
Browse files Browse the repository at this point in the history
Add getUserMembership
  • Loading branch information
auggod authored Apr 14, 2022
2 parents 7e4ff46 + adaa59b commit 5b6cb2f
Show file tree
Hide file tree
Showing 12 changed files with 550 additions and 202 deletions.
2 changes: 1 addition & 1 deletion proto/user/streetaddress.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/user/tag.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

276 changes: 145 additions & 131 deletions proto/user/user.pb.go

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions proto/user/user.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions proto/user/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ service ResonateUser {
};
}

rpc GetUserMembership(UserRequest) returns (UserMembershipResponse) {
option (google.api.http) = {
get: "/api/v1/user/{id}/membership"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "Get user membership"
description: "Get user membership."
tags: "Membership"
};
}

rpc GetUserCredits(UserRequest) returns (UserCreditResponse) {
option (google.api.http) = {
get: "/api/v1/user/{id}/credits"
Expand Down
36 changes: 36 additions & 0 deletions proto/user/user_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b6cb2f

Please sign in to comment.