This project for test purpose.
At project directory terminal run this for build.
mvnw clean install
After build success then run this for start.
mvnw spring-boot:run
Or run this for test.
mvnw test
Open swagger-ui
http://localhost:8080/swagger-ui/
Request for register.
{
"firstName":"testFirstName",
"lastName":"testLastName",
"username":"testUsername",
"password":"12345678",
"email":"[email protected]",
"address":"testAddress",
"telephoneNumber": "123457770",
"salary": "15000"
}
Expect response.
{
"data": {
"id": 1,
"firstName": "testFirstName",
"lastName": "testLastName",
"username": "testUsername",
"email": "[email protected]",
"address": "testAddress",
"telephoneNumber": "123457770",
"salary": "15000",
"referenceCode": "256310307770",
"memberType": "Silver"
},
"accessToken": "xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxx"
}
http://localhost:8080/h2-console
No need password.