added break when redirecting in restful api