Unverified Commit 41700877 authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Add tournament record delete runtime functions. (#977)

Improve leaderboard previous reset computation.
parent 3f1fc4f2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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.

+667 −656

File changed.

Preview size limit exceeded, changes collapsed.

+1085 −818

File changed.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
@@ -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) = {
+32 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -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",
Loading