Skip to content

Commit

Permalink
Add tournament record delete runtime functions. (#977)
Browse files Browse the repository at this point in the history
Improve leaderboard previous reset computation.
  • Loading branch information
sesposito authored Feb 9, 2023
1 parent 3f1fc4f commit 4170087
Show file tree
Hide file tree
Showing 33 changed files with 4,651 additions and 3,872 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]
### Added
- Add tournament record delete runtime functions and API.
### Changed
- Improve graceful shutdown of Google IAP receipt processor.

Expand Down
1,323 changes: 667 additions & 656 deletions apigrpc/apigrpc.pb.go

Large diffs are not rendered by default.

1,903 changes: 1,085 additions & 818 deletions apigrpc/apigrpc.pb.gw.go

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions apigrpc/apigrpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ service Nakama {
option (google.api.http).delete = "/v2/notification";
}

// Delete a tournament record.
rpc DeleteTournamentRecord (api.DeleteTournamentRecordRequest) returns (google.protobuf.Empty) {
option (google.api.http).delete = "/v2/tournament/{tournament_id}";
}

// Delete one or more objects by ID or username.
rpc DeleteStorageObjects (api.DeleteStorageObjectsRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
Expand Down
32 changes: 32 additions & 0 deletions apigrpc/apigrpc.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"200": {
"description": "A successful response.",
"schema": {
"type": "object",
"properties": {}
}
},
Expand Down Expand Up @@ -3250,6 +3251,37 @@
"Nakama"
]
},
"delete": {
"summary": "Delete a tournament record.",
"operationId": "Nakama_DeleteTournamentRecord",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "object",
"properties": {}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "tournamentId",
"description": "The tournament ID to delete from.",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"Nakama"
]
},
"post": {
"summary": "Write a record to a tournament.",
"operationId": "Nakama_WriteTournamentRecord2",
Expand Down
40 changes: 39 additions & 1 deletion apigrpc/apigrpc_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 4170087

Please sign in to comment.