An open API service indexing awesome lists of open source software.

https://github.com/lucasdiasjorge/jwt-token-in-spring

Working with JWT token in SpringBoot, users with roles.
https://github.com/lucasdiasjorge/jwt-token-in-spring

api jwt-authorization jwt-token spring-boot spring-security

Last synced: 29 days ago
JSON representation

Working with JWT token in SpringBoot, users with roles.

Awesome Lists containing this project

README

          

## API routes

#### Login

```http
Post http://localhost:8080/login
```
+ Request (application/json)

+ Body

{
"email": "personal@email.com",
"pass": "somehashorsomething123"
}

+ Response 200 (application/json)

+ Body

{
"Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
eyJhcHAiOiIzNDhlNTM4MzQ2M2Y3MzZjMGExZTJhNTFmNjYwZjA5NCIsInN1YmRvbWluaW8iOiJleGVtcGxvIiwiY2xpZW50IjoiMTU0ZDZlZGQ4YmQzMDEwYzQ4NjBkN2E5Y
zk1NzNmYmVmZTUyNGRlZiJ9.JJNs0bFtGOtwyJy_r-eefsvkd387M_x7zpucE1m4WIw"
}