Serenity and Cucumber Quick Start
Home > Api > Registering a new user > Logged-on players can play the game
Report generated 08-01-2026 10:13

Registering A New User

  Integration   Under 1 Second (Duration)

Logged-on players can play the game
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": "janel.towne",
"password": "vgwt6864",
"email": "qgcv19@gmail.com",
"role": "ROLE_PLAYER",
"country": "US",
"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:40 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

janel.towne
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": "janel.towne",
"password": "vgwt6864"
}

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

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqYW5lbC50b3duZSIsImlhdCI6MTc2Nzg2NzIyMSwiZXhwIjoxNzY3OTUzNjIxfQ.fFOz745sOfJrfNr6h2hpBHWT5reu0WKjn9-hFaXx9-0"
}
SUCCESS 008ms
POST http://localhost:37655/wordle/api/game

Response

URL: http://localhost:37655/wordle/api/game

Status code: 200

Content Type: application/json

Request Headers

Authorization=Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqYW5lbC50b3duZSIsImlhdCI6MTc2Nzg2NzIyMSwiZXhwIjoxNzY3OTUzNjIxfQ.fFOz745sOfJrfNr6h2hpBHWT5reu0WKjn9-hFaXx9-0
Accept=*/*
Content-Type=application/json

Content Body

{
"id": null,
"username": "janel.towne",
"password": "vgwt6864",
"email": "qgcv19@gmail.com",
"role": "ROLE_PLAYER",
"country": "US",
"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: application/json
Transfer-Encoding: chunked
Date: Thu, 08 Jan 2026 10:13:40 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

11
SUCCESS 005ms
SUCCESS 0.58s
Serenity BDD version 5.0.4