This is RestAPI, it shall not do any redirection. Remember, not only web using this API, mobile / desktop will use it too.