Compare commits
4 Commits
new_featur
...
f041e383b4
| Author | SHA1 | Date | |
|---|---|---|---|
| f041e383b4 | |||
|
|
c1b88a902e | ||
|
|
7d0c180a66 | ||
| c51cf95664 |
@@ -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
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user