Skip to content

Spring Boot Application (Kotlin + Gradle): Spring Security + JWT Token Login Rest APIs

Notifications You must be signed in to change notification settings

Shahriyar13/Spring-Boot-JWT-Login-Kotlin

Repository files navigation

API

> POST /api/auth/v1/register

{
  "username": "max",
  "firstName": null,
  "lastName": "max",
  "password": "123"
}
> POST /api/auth/v1/login

{
  "username": "max",
  "password": "123"
}
> POST /api/auth/v1/changeRole
> Authorization: <JWT>
{
  "username": "max",
  "role": "ADMIN"
}
> POST /api/items/v1/add
> Authorization: <JWT>

{
  "name": "Apple",
  "count": 42,
  "note": "Important apple"
}
> PUT /api/items/v1/update
> Authorization: <JWT>

{
  "id": 1,
  "name": "Apple",
  "count": 22,
  "note": "Very important apple"
}
> GET /api/items/v1/getAll
> Authorization: <JWT>
> GET /api/items/v1/getAllByUser
> Authorization: <JWT>
> DELETE /api/items/v1/deleteById?itemId=1
> Authorization: <JWT>

About

Spring Boot Application (Kotlin + Gradle): Spring Security + JWT Token Login Rest APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages