Skip to content

daviangelo/user-control-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API for an user control application

Features:

  • JWT Authentication;
  • List Users;
  • Get an User by ID;
  • Delete an User;
  • Register a new User;
  • Update an existent User.

Resources and dependencies:

  • JWT
  • Spring Boot
  • Spring Security
  • Swagger
  • DTO pattern
  • JPA Repository

API

authentication-controller :

  • Generate a JWT Token: POST /auth

  • JWT Token refresh: POST /auth/refresh

user-controller :

  • List Users: GET /api/users

  • Delete an User: DELETE /api/users/delete/{id}

  • Register a new User: POST /api/users/register

  • Update an User data: PUT /api/users/update/{id}

  • Get User by ID: GET /api/users/{id}

First authentication

The application uses a h2 embedded database, the data initialized for authentication is:

email: [email protected]

password: 123456

About

REST API for user-control using Java and Spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages