Thank you for your help. This got me going. Cheers
On Monday, November 20, 2023 at 4:22:36 AM UTC-4 m.gur...@gmail.com wrote:
> As I see in your code, I think you misunderstood the RetrieveAPIView. You
> cannot get a single object while giving multiple objects. If you create a
> RetrieveAPIView
As I see in your code, I think you misunderstood the RetrieveAPIView. You
cannot get a single object while giving multiple objects. If you create a
RetrieveAPIView, you need to know which object is selected. I mean, you
need to pass the ID of RokuContentFeed to your get method of
RokuContentFee
Thank you, yes, many=True will turn any field a list. However my issue is
that this response data is the main object. It is returning a list of
objects [ { } ] instead of one object { }. I changed my view to contain
this code for now, but its defintely not a final solution. This code will
retur
hi Anthony, as i know, the "many" parameter in your
RokuContentFeedSerializer method makes your data an array [ ].
Em qua., 1 de nov. de 2023 às 19:10, : Anthony: Crawford. <
crawfishme...@gmail.com> escreveu:
> Hi,
> I am trying to create an API that will provide JSON data that is based on
> Rok
Hi,
I am trying to create an API that will provide JSON data that is based on
Roku JSON specification
(https://developer.roku.com/en-ca/docs/specs/direct-publisher-feed-specs/json-dp-spec.md).
The specification requires that the JSON data is a single object { }, not a
list array [ ].
So far I am