Serenity and Cucumber Quick Start
Home > Api > Playing the game > After the game has finished the answer can be revealed via via GET /api/game/{id}/answer
Report generated 08-01-2026 10:13

Playing The Game

  Under 1 Second (Duration)   Gameplay

After the game has finished the answer can be revealed via via GET /api/game/{id}/answer
Steps Outcome
POST http://localhost:37655/wordle/api/auth/register

Response

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

Status code: 201

Content Type: application/json

Request Headers

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

Content Body

{
"id": null,
"username": "susan.lynch",
"password": "uzhe0322",
"email": "bebo37@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: 11
Date: Thu, 08 Jan 2026 10:13:41 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

susan.lynch
SUCCESS 011ms
POST http://localhost:37655/wordle/api/auth/login

Response

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

Status code: 200

Content Type: application/json

Request Headers

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

Content Body

{
"username": "susan.lynch",
"password": "uzhe0322"
}

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: Thu, 08 Jan 2026 10:13:41 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzdXNhbi5seW5jaCIsImlhdCI6MTc2Nzg2NzIyMiwiZXhwIjoxNzY3OTUzNjIyfQ.tgUnLgbxWfX8epvFLO--xrrG2p7erzTrD9rRZraHkcc"
}
SUCCESS 003ms
SUCCESS 087ms
Create a new game with the word BLAND
SUCCESS 056ms
SUCCESS 120ms
SUCCESS 089ms
SUCCESS 0.93s
Serenity BDD version 5.0.4