Skip to content

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

Notifications You must be signed in to change notification settings

muhamadridwanid/RestServiceStarterProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages