Add REST endpoint for relationship bulk query