I am using the Rest Framework in Django. I use the browsable API feature to auto-generate forms (for http POST,PUT etc) based on the Serializer for the given API.
My problem is that I am now creating an API with a nested serializer to receive a list of dictionaries in a known format. The declaration of the the nested serializer within the main serializer is:
customer_hosts = CustomerNetworkHostSerializer(many=True, required=True)
My API inherits generic's CreateAPIView form rest_framework. I also set the serializer_class to my main serializer.
The API works fine with the serializer if I manually send the required json object using a http post but I have no way to send the values for that variable using a browser with the auto-generated form. The variable with the nested serializer does not show up at all.
So what I am looking for is away to get the browsable_api working with a nested dynamic serializer if is possible?