Code Monkey home page Code Monkey logo

progmodbeadando's Introduction

ProgmodBeadando

Database : PostgreSQL

config

WebConfig

CORS Lekezelése

WebSecurityConfig

CORS Kikapcsolása

controler

Authorize

PostMapping
Egy json object-et vár (email,password)
Ha létezik ilyen email és jelszó páros a szerveren akkor visszaadja azt a felhasználót aki megprobált bejelentkezni.

UserController

 @GetMapping(path = "/{id}")
  Id alapján visszaadja a felhasználót
  
 @PostMapping
  Egy  Json objectet vár (name, email, password)
 Boolean nal tér vissza attól függően hogy sikerült e az adatbázisba mentés
 
 @PutMapping
 Egy  Json objectet vár (name, email, password)
 Az új értékekkel ad vissza egy User obj.-et
 
 @DeleteMapping(path ="/{id}" )
 User id alapján törli a recordot

dto

DataTranferToObject

model

User

  Reprezentál egy felhasználót
    -id (autogenerated)
    -name
    -email
    -passsword

repositroy

UserRepository

  Ez egy interface. JpaRepositoryt használ.(Hibernate)

service

UserService

függvényei:
  -createUser
  -checkIfEmailUnique (emailcim egyedinek kell lennie. Ez a függvény ellenörzi hogy a megadott email cím létezik-e már az adatbázisba. Ha igen akkor hibát dob)
  -getUser (id alapján visszaadja a usert)
  -updateUser (Egy user obj. et vár és a régit lecseréli az újra)
  -deleteUser (id alapján törli a usert)
  -getUserById
  -getUserByEmail
  -verifyUser (megvizsgálja hogy a beérkező email és password páros létezik-e (ha igen akkor a felhasználó sikeresen bejelentkezet és visszaadja a usert)(ha nem akkor null-t ad vissza, üres usert))
  -findAll (Egy listát ad vissza amiben benne van az összes User)

progmodbeadando's People

Contributors

szekelybalint01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.