I've been learning JWT authentication with Spring Security and thus created this simple RestFul API.
It consists of 3 Endpoints, "/users/register" will generate an user with an email and a password. "/users/login" will log the user and generate the session token. Finally, "/users/aboutme" is a secured endpoint that will display the user entry in database and will read the user email from a valid user token.
The database is bundled as a docker compose file in order to simplify configuration. For running the aplication (on port 3000) do this:
docker compose up
mvnw spring-boot:run
Then you should be able to do the corresponding requests with a http client like postman.