Serenity and Cucumber Quick Start
Home > Api > Getting hints > We can request a hint for the current game via GET /api/game/{id}/hint
Report generated 12-03-2024 07:14

Getting Hints

  Integration   Under 1 Second (Duration)   Hints

We can request a hint for the current game via GET /api/game/{id}/hint
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": "verena.dietrich",
"password": "lple7247",
"email": "cpmn40@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: 15
Date: Tue, 12 Mar 2024 07:14:28 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

verena.dietrich
SUCCESS 002ms
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": "verena.dietrich",
"password": "lple7247"
}

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

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ2ZXJlbmEuZGlldHJpY2giLCJpYXQiOjE3MTAyMjc2NjksImV4cCI6MTcxMDMxNDA2OX0.3bzs7TIarx45sLuFXpD6dLBvAvLEoP-wTP63lslv6cc"
}
SUCCESS 002ms
SUCCESS 037ms
Create a new game with the word BLAND
SUCCESS 013ms
SUCCESS 019ms
SUCCESS 0.3s
Serenity BDD version 4.1.3