Skip to content

Commit

Permalink
doc: add blacklist doc
Browse files Browse the repository at this point in the history
  • Loading branch information
reifocS committed May 13, 2024
1 parent 78cd88d commit 079df6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ Request : `/cars?search=creationyear:2018 AND price<300000 AND (color:Yellow OR
15. Using the BETWEEN operator
Request : `/cars?search=creationyear BETWEEN 2017 AND 2019`

## Blocking the search on a field
```java
@GetMapping
public List<User> getUsers(@SearchSpec(blackListedFields = {"password"}) Specification<User> specs) {
return userRepository.findAll(Specification.where(specs));
}
```

<!-- TROUBLESHOOTING -->
## Troubleshooting

Expand Down

0 comments on commit 079df6b

Please sign in to comment.