finish relationships api controller