API: getting by params (including foreign key ids) solved, offset & count parameters added.