API redirect


(Akv0725) #1

Hello. Is it possible to redirect specific web user, when api query requested?

For example: I have mobile application and page in admin web panel. When user in mobile application send request to server I have to redirect user in web application to page with photos that have been uploaded in this request.


(Basil) #2

In general, APIs can not redirect, but if your client is listening to status codes you can check for redirect status code and redirect the client to the given address: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection