Forums

DJango Rest framework Get request with request body parameters

I want to access get request with list of parameters in the body section instead of query params. Is it possible in Django rest framework. If yes. Please help me on this.

Including a request body that has meaning in a GET request is a pretty fuzzy area. See https://stackoverflow.com/questions/978061/http-get-with-request-body for quite a lot of interesting discussion on the matter. In short, it is possible that the body of a GET request will be stripped out by some software between client and the server and there's no real way of telling if that will happen or not for a particular client at a particular time.

I'd be surprised is DRF implements this at all.