/RestServiceStarterProject

Rest Api Starter project based on Spring boot (Security with JWT, Spring Security)

Primary LanguageJava

Rest Service Starter Project

Rest Api Starter project based on Spring boot (Security with JWT, Spring Security)

How To Test

Use POSTMAN :

  • Get Token, POST : http://127.0.0.1:8080/api/v1/auth with data :

    {
       "username" : "test",
       "password" : "test"
    }

    OR

    {
       "username" : "ridwan",
       "password" : "ridwan"
    }

    You will get response :

    {
    	"token": "eyTOKENblablabla"
    }
  • Navigate to : http://127.0.0.1:8080/api/v1/admin with header request :

    Authorization : TOKEN_HERE
    

    You will get response :

    {
        "message": "Hello ADMIN",
        "status": "OK"
    }

Lisence