Say I have a viewset A, where I will receive a bunch of data via querystring. I want to parse this querystring on viewset A, and then redirect the request with the parsed querystring to viewset B. How would I go about doing this?
I've tried insatiating the viewset B inside of A and then calling the get method manually to no avail.
If you want to redirect from an action in ViewsetA to an action in ViewsetB, here's how you can do it using the two different approaches mentioned before:
HTTP Redirect Approach:
Redirecting via HTTP will involve creating a URL for the action in ViewsetB and then sending an HTTP 302 response to redirect the client to that URL.
Internal Invocation Approach:
This will involve manually invoking the action in ViewsetB from within ViewsetA.