Skip to content

Latest commit

 

History

History
62 lines (56 loc) · 1.13 KB

README.md

File metadata and controls

62 lines (56 loc) · 1.13 KB

java-backend-test

This project for test purpose.

Installation

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

Usage

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"
}

Database

http://localhost:8080/h2-console

No need password.