Serenity and Cucumber Quick Start
Home > Api > Registering a new user > Users cannot access the game without logging on
Report generated 12-03-2024 07:14

Registering A New User

  Integration   Under 1 Second (Duration)

Users cannot access the game without logging on
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": "erik.collier",
"password": "yqvl4254",
"email": "ujec56@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: 12
Date: Tue, 12 Mar 2024 07:14:30 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

erik.collier
SUCCESS 002ms
POST http://localhost:38083/wordle/api/game

Response

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

Status code: 403

Content Type: application/json

Request Headers

Accept=*/*
Content-Type=application/json

Content Body

{
"id": null,
"username": "erik.collier",
"password": "yqvl4254",
"email": "ujec56@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: Tue, 12 Mar 2024 07:14:30 GMT
Keep-Alive: timeout=60
Connection: keep-alive

Response Body

{
"timestamp": "2024-03-12T07:14:30.869+00:00",
"status": 403,
"error": "Forbidden",
"path": "/wordle/api/game"
}
SUCCESS 001ms
SUCCESS 0.31s
Serenity BDD version 4.1.3