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.
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:
a list of the entire findALL(spec) query is returned as a list.
all entries in this list are BasicRepresentations.
Additional context
BasicRepresentation could be implemented as a record with static methods for creating from the objects based on AbstractModel
BasicRepresentation` should also be able to convert lists or sets of objects via a static method.
The standard toString() method is not suitable due to its internal use. Rather, the developer should be required to implement a getTitle() method, for example, which can then be used for BasicRepresentation.
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 thefindAll
endpoints with two differences:findALL(spec)
query is returned as a list.Additional context
toString()
method is not suitable due to its internal use. Rather, the developer should be required to implement agetTitle()
method, for example, which can then be used forBasicRepresentation
.