You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@GetMapping("/books")
publicResponseEntity<List<BookDTO>> getBooks(@ParameterObjectBookCriteriacriteria, @ParameterObjectPageablepageable) {
log.debug("REST request to get Book by criteria: {}", criteria);
Page<BookDTO> page = bookQueryService.findByCriteria(criteria, pageable);
......
** Springfox
For each entity, you can enable filtering in the entity generator, and after, you can call your /api/my-entity GET endpoint with the following parameters :
For each xyz field
xyz.equals=someValue
To list all the entities, where xyz equals to ‘someValue’
xyz.in=someValue,otherValue
To list all the entities, where xyz equals to ‘someValue’ or ‘otherValue’
xyz.specified=true
To list all the entities, where xyz is not null, specified.
xyz.specified=false
To list all the entities, where xyz is null, unspecified.
If xyz’s type is string:
xyz.contains=something
To list all the entities, where xyz contains ‘something’.
......
** Springdoc @ParameterObject does't support nested parameter objects
When use Jhipster generator entity filtering
https://www.jhipster.tech/entities-filtering/
Parameter object
Inner object
** Springfox
For each entity, you can enable filtering in the entity generator, and after, you can call your /api/my-entity GET endpoint with the following parameters :
For each xyz field
xyz.equals=someValue
To list all the entities, where xyz equals to ‘someValue’
xyz.in=someValue,otherValue
To list all the entities, where xyz equals to ‘someValue’ or ‘otherValue’
xyz.specified=true
To list all the entities, where xyz is not null, specified.
xyz.specified=false
To list all the entities, where xyz is null, unspecified.
If xyz’s type is string:
xyz.contains=something
To list all the entities, where xyz contains ‘something’.
......
** Springdoc @ParameterObject does't support nested parameter objects
The text was updated successfully, but these errors were encountered: