JWT Auth server
This is simple JWT Auth Server.
Example Of Rest API
Commands
Sing In:
URL : /api/auth/signin
Method : POST
Body :
{
"username": "1",
"password": "1"
}
Response Body (JWT_Tocker) :
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiZXhwIjoxNTc4MzMzOTAwLCJpYXQiOjE1NzgyMzM5MDB9.N01PscrwkVXmIi9L5WDi5jR_OpHy3Xy893tES3nZRQY",
"tokenType": "Bearer"
}
Query
Get User Info:
URL : /api/users/{user_id}
Header : Authorization: Bearer [JWT_Tocker]
Method : GET