Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Documenting RequestParam DTOs #426

@mustaphazorgati

Description

@mustaphazorgati

Because we have too many request parameter for some endpoints we decided to wrap them into dedicated DTO like so:

@GetMapping(path = "/url")
@Transactional(readOnly = true, rollbackFor = Exception.class)
public ResponseEntity<?> getListOfSomething(
  FilterParameter filterParameter,
  SortParameter sortParameter,
  PagingParameter pagingParameter) { 
    /*...*/
}

Unfortunately this way the code looks clean, but the request parameters which are contained within each DTO are not documented.

Is this currently not supported or are we doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions