Skip to content

Commit 4170087

Browse files
authored
Add tournament record delete runtime functions. (#977)
Improve leaderboard previous reset computation.
1 parent 3f1fc4f commit 4170087

33 files changed

+4651
-3872
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project are documented below.
44
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).
55

66
## [Unreleased]
7+
### Added
8+
- Add tournament record delete runtime functions and API.
79
### Changed
810
- Improve graceful shutdown of Google IAP receipt processor.
911

apigrpc/apigrpc.pb.go

Lines changed: 667 additions & 656 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apigrpc/apigrpc.pb.gw.go

Lines changed: 1085 additions & 818 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apigrpc/apigrpc.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ service Nakama {
309309
option (google.api.http).delete = "/v2/notification";
310310
}
311311

312+
// Delete a tournament record.
313+
rpc DeleteTournamentRecord (api.DeleteTournamentRecordRequest) returns (google.protobuf.Empty) {
314+
option (google.api.http).delete = "/v2/tournament/{tournament_id}";
315+
}
316+
312317
// Delete one or more objects by ID or username.
313318
rpc DeleteStorageObjects (api.DeleteStorageObjectsRequest) returns (google.protobuf.Empty) {
314319
option (google.api.http) = {

apigrpc/apigrpc.swagger.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"200": {
7979
"description": "A successful response.",
8080
"schema": {
81+
"type": "object",
8182
"properties": {}
8283
}
8384
},
@@ -3250,6 +3251,37 @@
32503251
"Nakama"
32513252
]
32523253
},
3254+
"delete": {
3255+
"summary": "Delete a tournament record.",
3256+
"operationId": "Nakama_DeleteTournamentRecord",
3257+
"responses": {
3258+
"200": {
3259+
"description": "A successful response.",
3260+
"schema": {
3261+
"type": "object",
3262+
"properties": {}
3263+
}
3264+
},
3265+
"default": {
3266+
"description": "An unexpected error response.",
3267+
"schema": {
3268+
"$ref": "#/definitions/rpcStatus"
3269+
}
3270+
}
3271+
},
3272+
"parameters": [
3273+
{
3274+
"name": "tournamentId",
3275+
"description": "The tournament ID to delete from.",
3276+
"in": "path",
3277+
"required": true,
3278+
"type": "string"
3279+
}
3280+
],
3281+
"tags": [
3282+
"Nakama"
3283+
]
3284+
},
32533285
"post": {
32543286
"summary": "Write a record to a tournament.",
32553287
"operationId": "Nakama_WriteTournamentRecord2",

apigrpc/apigrpc_grpc.pb.go

Lines changed: 39 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)