Skip to content

aldocsouza/Api-auth-Spring-Boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Spring Boot API for Role-Based Authentication

Technologies used

Java Spring Boot

Java Spring
Dependencies

  • Spring Data JPA
  • Validation
  • Lombok
  • Spring Web
  • PostgreSQL Driver
  • Spring Boot Dev Tools
  • Spring Security

PostgresSQL Database

Postgres

JWT - JSON Web Tokens - Authentication via tokens

JWT

What does the API do?

This API provides endpoints for user authentication and authorization, using JWT tokens. The available endpoints are:

  • /auth/login - Method POST - authenticates the user and generates a JWT token.
  • /auth/register - Method POST - register new user.
  • /auth/buscar - Method GET - lists all users.
  • /product - POST and GET.

Recommendations for testing

To test the API, it is recommended to use Postman or Insomnia. Here are some examples of requests:

/auth/login

About

Spring Boot API for role Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages