Frachtwerk / essencium-backend

Essencium Backend is a software library built on top of Spring Boot that allows developers to quickly get started on new software projects. Essencium provides, for example, a fully implemented role-rights concept as well as various field-tested solutions for access management and authentication.
GNU Lesser General Public License v3.0
15 stars 3 forks source link

Provide BasicRepresentation #540

Closed pwannenmacher closed 1 month ago

pwannenmacher commented 2 months ago

Is your feature request related to a problem? Please describe. Currently, it is only possible to provide complete representations (with many parameters) via the default endpoints of the Essencium controller. In addition, Essencium only offers page representations. If, for example, objects are now output for a drop-down list, large, possibly data-intensive objects must be output embedded in pages (with possibly adapted size as query parameter).

Describe the solution you'd like A BasicRepresentation could be introduced, which only contains the ID of the database entry and a kind of name of the entry. In addition, all controllers could be extended by an endpoint that is structured in the same way as the findAll endpoints with two differences:

  1. a list of the entire findALL(spec) query is returned as a list.
  2. all entries in this list are BasicRepresentations.

Additional context