Serenity and Cucumber Quick Start
Home > Api > Creating a new game > Each new game should be assigned a unique id
Report generated 08-01-2026 10:13

Creating A New Game

  Integration   Creation   1 To 10 Seconds (Duration)

Each new game should be assigned a unique id
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": "hermina.donnelly",
"password": "gyce6977",
"email": "njye55@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: 16
Date: Thu, 08 Jan 2026 10:13:38 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

hermina.donnelly
SUCCESS 012ms
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": "hermina.donnelly",
"password": "gyce6977"
}

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

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJoZXJtaW5hLmRvbm5lbGx5IiwiaWF0IjoxNzY3ODY3MjE5LCJleHAiOjE3Njc5NTM2MTl9.H7pRfbId439xhDxl67m7A_XswZHhkaQOk37Zcw3WtTM"
}
SUCCESS 006ms
SUCCESS 138ms
SUCCESS 2.75s
Serenity BDD version 5.0.4