Class RestQueriesConfiguration

java.lang.Object
io.jmix.rest.impl.config.RestQueriesConfiguration

@Component("rest_RestQueriesConfiguration") public class RestQueriesConfiguration extends Object
Class is used for loading and storing of predefined JPQL queries that are used by the REST API. Queries are loaded from configuration files defined by the jmix.rest.queriesConfig application property.

Queries with the name defined by the ALL_ENTITIES_QUERY_NAME field should not be present in the queries config. If the query with this name is requested, the RestQueriesConfiguration.QueryInfo for the query that returns all entities will be returned.