Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. @GetMapping("/alkalmazott/{id}")
  2. public static ResponseEntity<Ember> alkalmazottLekeres(Ember ujadat, @PathVariable String id) {
  3. logger.info("Alkalmazott lekérés történt");
  4.  
  5. if (database.findById(id, Alkalmazott.class, "Alkalmazottak") == null) {
  6. throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "User permission level is not high enough!");
  7. }
  8.  
  9. return new ResponseEntity<>(ujadat, defaultHeaders, HttpStatus.OK);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement