3 Commits

Author SHA1 Message Date
Student Politechniki
c1b88a902e Merge branch 'master' of https://gitea.cs.pollub.pl/Hubi0295/Lab2 2025-10-21 15:54:29 +02:00
Student Politechniki
7d0c180a66 Zmiana zrobiona przez mnie 2025-10-21 15:48:44 +02:00
c51cf95664 Update Readme.txt 2025-10-21 11:51:57 +00:00
3 changed files with 2 additions and 30 deletions

View File

@@ -1,3 +1,2 @@
To jest projekt z Lab1.
To jest kolejna linijka w readme.
Kolejna zmiana w pliku.
To jest kolejna linijka w readme.hbjkh

View File

@@ -12,6 +12,7 @@ public class DemoApplication {
System.out.println("Third line added");
System.out.println(new Date());
SpringApplication.run(DemoApplication.class, args);
System.out.println("Dodalem zmiany Hubi0295 na repo szumik");
}
}

View File

@@ -1,28 +0,0 @@
@RestController
clsass UserController {
@GetMapping("/users")
public List<User> getAllUsers() {
// Logic to retrieve all users
}
@PostMapping("/users")
public User createUser(@RequestBody User user) {
// Logic to create a new user
}
@GetMapping("/users/{id}")
public User getUserById(@PathVariable Long id) {
// Logic to retrieve a user by ID
}
@PutMapping("/users/{id}")
public User updateUser(@PathVariable Long id, @RequestBody User user) {
// Logic to update a user by ID
}
@DeleteMapping("/users/{id}")
public void deleteUser(@PathVariable Long id) {
// Logic to delete a user by ID
}
}