foreign key api setting, next todo is filtering api setting