Serenity and Cucumber Quick Start
Home > Api > Creating a new game > Each new game should be assigned a unique id
Report generated 12-03-2024 07:14

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: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": "rodolfo.nikolaus",
"password": "rxcf9462",
"email": "wbyt39@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: Tue, 12 Mar 2024 07:14:26 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

rodolfo.nikolaus
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": "rodolfo.nikolaus",
"password": "rxcf9462"
}

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

Response Body

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJyb2RvbGZvLm5pa29sYXVzIiwiaWF0IjoxNzEwMjI3NjY3LCJleHAiOjE3MTAzMTQwNjd9.ztkYV2qeHEudTDLM6XbbLMcQ7-GUNSNOdNbLAE6rBd0"
}
SUCCESS 007ms
SUCCESS 101ms
SUCCESS 1.13s
Serenity BDD version 4.1.3