Serenity and Cucumber Quick Start
Home > Api > Playing the game > This is an example of a complete game played via the API
Report generated 08-01-2026 10:13

Playing The Game

  1 To 10 Seconds (Duration)   Gameplay

This is an example of a complete game played via the API
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": "jose.walter",
"password": "rsvz9927",
"email": "gwcz04@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:43 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

jose.walter
SUCCESS 002ms
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": "jose.walter",
"password": "rsvz9927"
}

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:44 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqb3NlLndhbHRlciIsImlhdCI6MTc2Nzg2NzIyNCwiZXhwIjoxNzY3OTUzNjI0fQ.bhDms-YsGMB7KXY_X5A77S-nGmzArtW4Q14X9Ee_hmM"
}
SUCCESS 008ms
SUCCESS 077ms
Create a new game with the word BLAND
SUCCESS 051ms
SUCCESS 195ms
SUCCESS 152ms
SUCCESS 059ms
SUCCESS 1.03s
Serenity BDD version 5.0.4