Closed pederhan closed 1 month ago
Given the path /api/v1/hostpolicy/roles/ and the params {"name__regex": "."}, we send:
/api/v1/hostpolicy/roles/
{"name__regex": "."}
/api/v1/hostpolicy/roles/?name__regex=.
And get back this Next URL in the response headers:
/api/v1/hostpolicy/roles/?name__regex=.&page=2
If we pass the original params to get() along with the Next URL, we end up requesting the path:
get()
/api/v1/hostpolicy/roles/?name__regex=.&page=2&name__regex=.'
We should probably just trust that Django gives us a valid Next URL after the first request and omit the original params.
Given the path
/api/v1/hostpolicy/roles/
and the params{"name__regex": "."}
, we send:And get back this Next URL in the response headers:
If we pass the original params to
get()
along with the Next URL, we end up requesting the path:We should probably just trust that Django gives us a valid Next URL after the first request and omit the original params.