- Demo project implementing appropriate flow for User signup and signing as well as post creation and retrival.
- Configured Spring Boot Rest Api Architecture with Spring Security to work with JWT.
- Defined Data Models and services for Authentication and Authorization.
- Interaction configuration for Spring Data JPA with MySQL.
Clone the project
git clone https://github.com/danieltanurhan/Backend-Server-Api-JWT.git
Go to the project directory
cd Backend-Server-Api-JWT
Install dependencies
npm install
Start the server
./gradlew bootrun
POST /api/signup
Parameter | Type | Description |
---|---|---|
username |
string |
Required. |
password |
string |
Required. |
email |
string |
Required. |
role |
set<string> |
Required. |
POST /api/signin
Parameter | Type | Description |
---|---|---|
username |
string |
Required. |
password |
string |
Required. |
POST /api/signout
GET /api/test/all
GET /api/test/user
GET /api/test/mod
GET /api/test/admin
- Use this to test role access authorization