https://www.django-rest-framework.org/api-guide/requests/
.query_params
request.query_params is a more correctly named synonym for request.GET.
For clarity inside your code, we recommend using request.query_params instead of the Django's standard request.GET. Doing so will help keep your codebase more correct and obvious - any HTTP method type may include query parameters, not just GET requests.
request.query_params.get('myRequest')
No comments:
Post a Comment