Using isomorphic fetch in react-redux to retrieve data from Django Rest Framework.
I'd like to send DRF a GET request with an array of PKs and get back their records.
From what I've read so far on StackOverflow, request bodies are not necessarily RESTful, it's too unwieldy to pass a large array in my url params, so I can only conclude that I need to do a POST or PUT request.
The bottom answer seems to be successful in sending a GET with a request.body, but I haven't been able to serialize the data
Request multiple ids from Django REST framework API
What's the best practice for retrieving data from DRF given some kind of user input?
TLDR:
- Do I initiate a GET (not RESTful, but it intuitively makes more sense)
- Do I POST? (update records showing that these records have been "viewed" and then serialize a response?)
- Something else?