Commit c7200bae authored by Fernando Takagi's avatar Fernando Takagi Committed by Andrei Mihu
Browse files

Add delete account client function.

parent fa2b7259
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Allow devconsole group view to add new members.
- Allow `DELETE` and `HEAD` methods in runtime HTTP request functions.
- Add In-App Purchase notification callback functions to runtimes.
- Add `DeleteAccount` client API function.
- Add `DeleteAccount` before and after hook functions to runtimes.

### Changed
- Stricter validation of limit in runtime storage list operations.
+627 −619

File changed.

Preview size limit exceeded, changes collapsed.

+877 −972

File changed.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
@@ -284,6 +284,11 @@ service Nakama {
    };
  }

  // Delete the current user's account.
  rpc DeleteAccount (google.protobuf.Empty) returns (google.protobuf.Empty) {
    option (google.api.http).delete = "/v2/account";
  }

  // Delete one or more users by ID or username.
  rpc DeleteFriends (api.DeleteFriendsRequest) returns (google.protobuf.Empty) {
    option (google.api.http).delete = "/v2/friend";
+21 −0
Original line number Diff line number Diff line
@@ -71,6 +71,27 @@
          "Nakama"
        ]
      },
      "delete": {
        "summary": "Delete the current user's account.",
        "operationId": "Nakama_DeleteAccount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "properties": {}
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "tags": [
          "Nakama"
        ]
      },
      "put": {
        "summary": "Update fields in the current user's account.",
        "operationId": "Nakama_UpdateAccount",
Loading