Serenity and Cucumber Quick Start
Home > Api > Game history and statistics > Game statistics can be retrieved for the current player
Report generated 12-03-2024 07:14

Game History And Statistics

  Integration   Under 1 Second (Duration)   History

Game statistics can be retrieved for the current player
Steps Outcome
POST http://localhost:38083/wordle/api/auth/register

Response

URL: http://localhost:38083/wordle/api/auth/register

Status code: 201

Content Type: application/json

Request Headers

Accept=*/*
Content-Type=application/json

Content Body

{
"id": null,
"username": "ellamae.block",
"password": "hojq5323",
"email": "ipts43@gmail.com",
"role": "ROLE_PLAYER",
"country": "GB",
"receiveUpdates": false
}

Response Headers

Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: text/plain;charset=UTF-8
Content-Length: 13
Date: Tue, 12 Mar 2024 07:14:29 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

ellamae.block
SUCCESS 002ms
POST http://localhost:38083/wordle/api/auth/login

Response

URL: http://localhost:38083/wordle/api/auth/login

Status code: 200

Content Type: application/json

Request Headers

Accept=*/*
Content-Type=application/json

Content Body

{
"username": "ellamae.block",
"password": "hojq5323"
}

Response Headers

Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 12 Mar 2024 07:14:30 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbGxhbWFlLmJsb2NrIiwiaWF0IjoxNzEwMjI3NjcwLCJleHAiOjE3MTAzMTQwNzB9.XR_lqPLWhfFJrTgx9TWBw-eP625PoGSFzxVzP_cchCc"
}
SUCCESS 002ms
Create a new game with the word BLAND
SUCCESS 033ms
SUCCESS 094ms
Create a new game with the word QUEST
SUCCESS 026ms
SUCCESS 139ms
Create a new game with the word BEAST
SUCCESS 035ms
SUCCESS 172ms
Create a new game with the word BEAST
SUCCESS 051ms
SUCCESS 150ms
SUCCESS 156ms
SUCCESS 0.24s
Serenity BDD version 4.1.3