[Relations] [Benwei] fix checkstyle and add rest api test for Locus controller