Login-Register-API

Login Register API coded in Java using Java Spring Boot,Swagger and PostgreSQL.

Spring Boot Dependencies

  • Spring Boot Dev Tools
  • Lombok
  • Spring Web
  • Spring Data JPA
  • Validation
  • PostgreSql Driver
  • Thymeleaf
  • SpringMVC

API Controllers and Methods

  • user-controller
    • add
    • remove
    • update
    • getall
    • getbyid
    • getbyfirstname
    • getbylastname
    • getbyfirstnameorlastname
  • register-controller
    • register
  • login-controller
    • login
  • change-log-controller
    • getbyid (user id)
    • getall
    • getByFirstNameOrLastName

UI Urls

To access the swagger: http://localhost:8080/swagger-ui/index.html#/

Here are some screenshots of the API

Swagger

User-Controller is the API for admins.

main

Login Form

login

Register Form

register

User List

userslist

Add User Form

add user form

Update User Form

update user

Logs

logs

users Table

PostgreTable

change_logs Table

changelog table