Fix: cleaning tracked build artifacts and applying proper .gitignore

This commit is contained in:
rayankonecny 2025-12-04 05:04:52 +00:00
parent debf680a54
commit 912e7aea9c
3 changed files with 17 additions and 13 deletions

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
# Maven build
target/
**/target/
# External libs built locally
hd-commons-lib/target/

View file

@ -16,23 +16,20 @@ Accept: application/json
{
"name": "John Doe",
"email": "john.doe@example.com",
"password": "Pa$$w0rd",
"role": "user"
"email": "john.doe@olymp.com",
"password": "123456",
"profiles": [
"ROLE_CUSTOMER"
]
}
#### Update an existing user (replace {{id}} or use a concrete id like 1)
PUT http://175.15.15.91:8080/api/users/692cca264e957945b99f731a
PUT http://175.15.15.91:8080/api/users/69311094e258303f40941a52
Content-Type: application/json
Accept: application/json
# Authorization: Bearer {{token}}
{
"id": "692cca264e957945b99f731a",
"name": "Edvaldo",
"email": "edinho@gmail.com",
"password": "123456",
"profiles": [
"ROLE_CUSTOMER"
]
}
"email": "edinhoadm@gmail.com",
"password": "7654321"
}

View file

@ -19,7 +19,8 @@ import models.requests.UpdateUserRequest;
@Service
@RequiredArgsConstructor
public class UserService {
// Dependencies
private final UserRepository repository;
private final UserMapper mapper;
private final BCryptPasswordEncoder encoder;