Skip to content

User login app build with front-end communicating with Spring back-end through REST API

License

Notifications You must be signed in to change notification settings

kvbc/user-login-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

user-login-app

Przechwytywanie

The .css is 99.9% stolen

Spring dependencies

  • Spring Web
  • Spring Security
  • Spring Data JPA
  • MySQL Driver
  • Lombok

SQL Table

CREATE TABLE users(
    id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
    login VARCHAR(255) NOT NULL,
    password VARCHAR(255) NOT NULL
);

REST API

Retrieve the information of user with the ID of MY_ID
curl -X GET http://localhost:8080/api/user/MY_ID

Retrieve the list of all registered users
curl -X GET http://localhost:8080/api/user

Delete all registered users
curl -X DELETE http://localhost:8080/api/user

Register user MY_LOGIN with password MY_PASSWORD
curl -X POST -H "Content-type: application/json" -d "{\"login\":\"MY_LOGIN\",\"password\":\"MY_PASSWORD\"}" http://localhost:8080/api/user/register

Login as user MY_LOGIN with password MY_PASSWORD
curl -X POST -H "Content-type: application/json" -d "{\"login\":\"MY_LOGIN\",\"password\":\"MY_PASSWORD\"}" http://localhost:8080/api/user/login

Delete user MY_LOGIN with password MY_PASSWORD
curl -X POST -H "Content-type: application/json" -d "{\"login\":\"MY_LOGIN\",\"password\":\"MY_PASSWORD\"}" http://localhost:8080/api/user/delete

About

User login app build with front-end communicating with Spring back-end through REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages