Loading apigrpc/apigrpc.proto +26 −7 Original line number Diff line number Diff line Loading @@ -88,12 +88,18 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { service Nakama { // Add friends by ID or username to a user's account. rpc AddFriends (api.AddFriendsRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/friend"; option (google.api.http) = { post: "/v2/friend", body: "*" }; } // Add users to a group. rpc AddGroupUsers (api.AddGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/add"; option (google.api.http) = { post: "/v2/group/{group_id}/add", body: "*" }; } // Refresh a user's session using a refresh token retrieved from a previous authentication request. Loading Loading @@ -266,13 +272,17 @@ service Nakama { // Ban a set of users from a group. rpc BanGroupUsers (api.BanGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/ban"; option (google.api.http) = { post = "/v2/group/{group_id}/ban", body: "*" }; } // Block one or more users by ID or username. rpc BlockFriends (api.BlockFriendsRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v2/friend/block" post: "/v2/friend/block", body: "*" }; } Loading Loading @@ -363,7 +373,10 @@ service Nakama { // Kick a set of users from a group. rpc KickGroupUsers (api.KickGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/kick"; option (google.api.http) = { post: "/v2/group/{group_id}/kick", body: "*" }; } // Leave a group the user is a member of. Loading Loading @@ -515,12 +528,18 @@ service Nakama { // Promote a set of users in a group to the next role up. rpc PromoteGroupUsers (api.PromoteGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/promote"; option (google.api.http) = { post: "/v2/group/{group_id}/promote", body: "*" }; } // Demote a set of users in a group to the next role down. rpc DemoteGroupUsers (api.DemoteGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/demote"; option (google.api.http) = { post: "/v2/group/{group_id}/demote", body: "*" }; } // Get storage objects. Loading Loading
apigrpc/apigrpc.proto +26 −7 Original line number Diff line number Diff line Loading @@ -88,12 +88,18 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { service Nakama { // Add friends by ID or username to a user's account. rpc AddFriends (api.AddFriendsRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/friend"; option (google.api.http) = { post: "/v2/friend", body: "*" }; } // Add users to a group. rpc AddGroupUsers (api.AddGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/add"; option (google.api.http) = { post: "/v2/group/{group_id}/add", body: "*" }; } // Refresh a user's session using a refresh token retrieved from a previous authentication request. Loading Loading @@ -266,13 +272,17 @@ service Nakama { // Ban a set of users from a group. rpc BanGroupUsers (api.BanGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/ban"; option (google.api.http) = { post = "/v2/group/{group_id}/ban", body: "*" }; } // Block one or more users by ID or username. rpc BlockFriends (api.BlockFriendsRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v2/friend/block" post: "/v2/friend/block", body: "*" }; } Loading Loading @@ -363,7 +373,10 @@ service Nakama { // Kick a set of users from a group. rpc KickGroupUsers (api.KickGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/kick"; option (google.api.http) = { post: "/v2/group/{group_id}/kick", body: "*" }; } // Leave a group the user is a member of. Loading Loading @@ -515,12 +528,18 @@ service Nakama { // Promote a set of users in a group to the next role up. rpc PromoteGroupUsers (api.PromoteGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/promote"; option (google.api.http) = { post: "/v2/group/{group_id}/promote", body: "*" }; } // Demote a set of users in a group to the next role down. rpc DemoteGroupUsers (api.DemoteGroupUsersRequest) returns (google.protobuf.Empty) { option (google.api.http).post = "/v2/group/{group_id}/demote"; option (google.api.http) = { post: "/v2/group/{group_id}/demote", body: "*" }; } // Get storage objects. Loading