Skip to content

Registration API with access token and encryption using Spring Boot, Mockito, JWT, Swagger

Notifications You must be signed in to change notification settings

porakup/Java-Spring-Boot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Registration API with access token and encryption using Spring Boot, Mockito, JWT, Swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages