@ -20,4 +20,7 @@ public interface AccessClient
@RequestLine("POST /accounts/logout")
@Headers(Utils.AUTHENTICATION_HEADER + ":Bearer {authToken}")
Response logout(@Param("authToken") final String authenticationHeader);
@RequestLine("DELETE /accounts/{playerId}")
Response deletePlayer(@Param("playerId") final String playerId);
}
@ -83,4 +83,14 @@ class AccessClientTest
assertEquals(200, result.status(), "Should return status code 200.");
@Test
void testDeletePlayer()
{
mockClient.ok(HttpMethod.DELETE, "/accounts/12345");
final Response result = client.deletePlayer("12345");