This project is a simple example to share and learn about data protection in a particular API. In this case is data masking by using Spring Boot and a custom annotation @MaskData.
- Java 17 or higher
- Maven
- Postman (optional, for testing with the provided collection)
You import the following postman collection doc/data_masking.postman_collection.json. Or you can use the following
CURLs:
- Get all users:
curl --location 'http://localhost:8080/api/users'- Get user by ID:
curl --location 'http://localhost:8080/api/users/1'- Save user:
curl --location 'http://localhost:8080/api/users' \
--header 'Content-Type: application/json' \
--data '{
"name": "Some name",
"age": 24,
"username": "sname",
"password": "pass92d63c923ce",
"phoneNumber": "1111223344"
}'