Serenity and Cucumber Quick Start
Home > Api > Playing the game > We can check the current state of the game by sending a GET to /api/game/{id}/guesses
Report generated 12-03-2024 07:14

Playing The Game

  Under 1 Second (Duration)   Gameplay

We can check the current state of the game by sending a GET to /api/game/{id}/guesses
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": "jaquelyn.stamm",
"password": "salj3924",
"email": "fefn16@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: 14
Date: Tue, 12 Mar 2024 07:14:30 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

jaquelyn.stamm
SUCCESS 003ms
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": "jaquelyn.stamm",
"password": "salj3924"
}

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.eyJzdWIiOiJqYXF1ZWx5bi5zdGFtbSIsImlhdCI6MTcxMDIyNzY3MCwiZXhwIjoxNzEwMzE0MDcwfQ.rIUfL6j19yya5-kJQA7C0oQP1pO1tGxxqhunvVvvgVY"
}
SUCCESS 003ms
SUCCESS 033ms
SUCCESS 066ms
SUCCESS 056ms
SUCCESS 0.17s
Serenity BDD version 4.1.3