io.katharsis.repository.MetaRepository Maven / Gradle / Ivy
package io.katharsis.repository;
import io.katharsis.queryParams.QueryParams;
import io.katharsis.response.MetaInformation;
/**
* An optional interface that can be implemented along with {@link ResourceRepository} or {@link
* RelationshipRepository} to get meta information about returned resource(s).
*/
public interface MetaRepository {
/**
* Return meta information about a resource. Can be called after find repository methods call
*
* @param resources a list of found resource(s)
* @param queryParams parameters sent along with the request
* @return meta information object
*/
MetaInformation getMetaInformation(Iterable resources, QueryParams queryParams);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy