docker build -t spring-security-basics .
docker run -p 8080:8080 spring-security-basics
POST localhost:8080/auth/register
- URL: localhost:8080/auth/register
- Method: POST
- Response: 201 Created
Body:
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"password": "password123"
}
POST localhost:8080/auth/login
- URL: localhost:8080/auth/login
- Method: POST
- Response: 202 Accepted - JWT
Body:
{
"email": "[email protected]",
"password": "password123"
}